Skip to content

Bulk asynchronous downloader for multiple file hosts

ci/cd: create OIDC publish workflow (#1694)

NTFSvolumee404793e36c2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 000000000..d058ade89
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,46 @@
+name: "Publish"
+
+on:
+ push:
+ branches:
+ - main
+ tags:
+ - "[0-9]+.[0-9]+.[0-9]+*"
+
+permissions: {}
+
+jobs:
+ publish_to_pypi:
+ name: publish_to_pypi
+ runs-on: ubuntu-latest
+ environment:
+ name: pypi
+ permissions:
+ id-token: write # Required for OIDC
+ contents: read
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ with:
+ ref: ${{ github.ref_name }}
+ persist-credentials: false
+ - name: Install uv
+ uses: astral-sh/setup-uv@v7
+ with:
+ enable-cache: false
+ - name: Ensure tag matches package version
+ env:
+ GITHUB_REF_NAME: ${{ github.ref_name }}
+ run: |
+ pkg_version=$(uv version --short)
+
+ if [[ "$pkg_version" != "${GITHUB_REF_NAME}" ]]; then
+ echo "Tag '${GITHUB_REF_NAME}' ≠ package version '$pkg_version'"
+ exit 1
+ fi
+ - name: Install Python 3.13
+ run: uv python install 3.13
+ - name: Build
+ run: uv build
+ - name: Publish
+ run: uv publish
diff --git a/pyproject.toml b/pyproject.toml
index c8be30576..6eda2fb3d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -51,7 +51,7 @@ license-files = ["LICENSE"]
maintainers = [{name = "NTFSvolume", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.11"
-version = "9.3.0"
+version = "9.3.1.dev0"
[project.optional-dependencies]
extras = [