Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ jobs:
ref: ${{ inputs.sha }}
- name: Extract release notes
id: release_notes
uses: ffurrer2/extract-release-notes@273da39a24fb7db106a35526c8162815faffd31d # v3
uses: ffurrer2/extract-release-notes@273da39a24fb7db106a35526c8162815faffd31d # v3.1.0
with:
changelog_file: py-rattler/CHANGELOG.md
- name: Verify release notes
Expand Down Expand Up @@ -445,8 +445,7 @@ jobs:
- extract-changelog
# If you don't set an input tag, it's a dry run (no uploads).
if: ${{ inputs.tag }}
environment:
name: release
environment: release
permissions:
# For pypi trusted publishing
id-token: write
Expand All @@ -456,7 +455,7 @@ jobs:
merge-multiple: true
path: wheels
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
skip-existing: true
packages-dir: wheels
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
permissions:
contents: read
id-token: write
environment: release
steps:
- name: Obtain GitHub app token
id: octo-sts
Expand Down Expand Up @@ -47,13 +48,16 @@ jobs:

# Verify configs are gone
git config --global --list
- name: Authenticate with crates.io
id: crates-io-auth
uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5
Comment on lines +52 to +53

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this workflow already uses id-token: write because of octo-sts

- name: Run release-plz
uses: release-plz/action@e8792575c7f2366cf6ff3ccc33ead9ace5b691c7 # v0.5.130
with:
command: release
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}

# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
Expand Down Expand Up @@ -104,4 +108,3 @@ jobs:
command: release-pr
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading
Loading