-
Notifications
You must be signed in to change notification settings - Fork 33
41 lines (35 loc) · 1.1 KB
/
release-plz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release-plz
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- develop
jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.run-release-plz.outputs.releases_created }} # Expose this step output as a job output
steps:
- uses: actions/checkout@v4
with:
# Needed to pull full commit history for release version number inference
fetch-depth: 0
- uses: ./.github/actions/cleanup
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python
- name: Run release-plz
id: run-release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
release-to-pypi:
name: Release to PyPI
needs: release-plz
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
if: ${{ needs.release-plz.outputs.releases_created == 'true' }}
uses: ./.github/workflows/publish-vortex.yml