Skip to content

Commit 4c33b22

Browse files
authored
Merge pull request #26 from roboflow/peter/release-workflow
Add PyPI release workflow (OIDC) and bump to 1.1.2
2 parents 0cf57be + be27e1d commit 4c33b22

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: Build distributions
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Install build tooling
24+
run: python -m pip install --upgrade build
25+
26+
- name: Build sdist and wheel
27+
run: python -m build
28+
29+
- name: Upload distribution artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: dist
33+
path: dist/
34+
35+
publish:
36+
name: Publish to PyPI (Trusted Publishing / OIDC)
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: pypi
41+
url: https://pypi.org/p/rf100vl
42+
permissions:
43+
id-token: write
44+
steps:
45+
- name: Download distribution artifacts
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: dist
49+
path: dist/
50+
51+
- name: Publish to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name="rf100vl",
13-
version="1.1.1",
13+
version="1.1.2",
1414
description="RF100-VL Dataset Interface",
1515
author="Roboflow, Inc.",
1616
author_email="peter@roboflow.com",

0 commit comments

Comments
 (0)