File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ jobs:
1717 steps :
1818 - id : checkout
1919 name : Checkout
20- uses : actions/checkout@v4
20+ uses : actions/checkout@v6
2121
2222 - id : auth
2323 name : Authenticate with Google Cloud
24- uses : google-github-actions/auth@v2
24+ uses : google-github-actions/auth@v3
2525 with :
2626 token_format : access_token
2727 workload_identity_provider : projects/51853309262/locations/global/workloadIdentityPools/my-pool/providers/my-provider
3434 cat app/pyproject.toml
3535
3636 - name : Setup Python
37- uses : actions/setup-python@v3
37+ uses : actions/setup-python@v6
3838
3939 - name : Install Dependencies
4040 run : |
6060 gcloud config set artifacts/location europe-west1
6161 gcloud artifacts print-settings python > ~/.pypirc
6262 python -m twine upload --repository python dist/*
63+
64+ - name : Check if pre-release
65+ id : check_prerelease
66+ run : |
67+ if [[ "${{ github.ref_name }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+-[0-9]+$ ]]; then
68+ echo "prerelease=false" >> $GITHUB_OUTPUT
69+ else
70+ echo "prerelease=true" >> $GITHUB_OUTPUT
71+ fi
72+
73+ - name : Create GitHub Release
74+ uses : softprops/action-gh-release@v2
75+ with :
76+ generate_release_notes : true
77+ prerelease : ${{ steps.check_prerelease.outputs.prerelease }}
You can’t perform that action at this time.
0 commit comments