Skip to content

Commit

Permalink
Publish to PyPI using trusted publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 11, 2023
1 parent f575a32 commit 086ba46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
- cron: "33 5 * * *"
workflow_dispatch:

permissions:
contents: write

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -193,21 +190,25 @@ jobs:
path: dist

release:
name: Release
needs: [manylinux, musllinux, windows, macos]
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [manylinux, musllinux, windows, macos]
environment:
name: PyPI
url: https://pypi.org/p/rpds-py
permissions:
contents: write
id-token: write

steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.pypi_password }}
with:
command: upload
args: --skip-existing *
args: --non-interactive --skip-existing *
- name: Create a GitHub Release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rpds-py"
version = "0.10.5"
version = "0.10.6"
edition = "2021"

[lib]
Expand Down

0 comments on commit 086ba46

Please sign in to comment.