Skip to content

Commit c5db0c1

Browse files
Updated workflow dependencies
1 parent 3f4a079 commit c5db0c1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

publish-to-pypi.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,15 @@ jobs:
8484
# to next Github Actions job in line.
8585
get-python-version-info:
8686
runs-on: ubuntu-latest
87+
permissions: write-all
8788

8889
# Output which is passed to the PyPi publication job
8990
outputs:
9091
my-program-version: ${{ steps.regex.outputs.group1 }}
9192

9293
steps:
9394
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
94-
- uses: actions/checkout@v3.5.2
95+
- uses: actions/checkout@v3.5.3
9596

9697
# Read source file
9798
- name: Read source file
@@ -158,10 +159,10 @@ jobs:
158159

159160
steps:
160161

161-
- uses: actions/checkout@v3.5.2
162+
- uses: actions/checkout@v3.5.3
162163
# Set up Python environment
163164
- name: Set up Python
164-
uses: actions/setup-python@v2
165+
uses: actions/setup-python@v4
165166
with:
166167
python-version: '${{ env.PYTHON_VERSION }}'
167168

@@ -178,15 +179,15 @@ jobs:
178179
# Unlike for the Prod branch, we will push both releases and prerelease to PyPi Test
179180
- name: Publish package to Test PyPi
180181
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
181-
uses: pypa/gh-action-pypi-publish@release/v1
182+
uses: pypa/gh-action-pypi-publish@release/v1.8.7
182183
with:
183184
user: __token__
184185
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
185186
repository_url: https://test.pypi.org/legacy/
186187
# Publish everything to Prod PyPi but only if it is not a prerelease
187188
- name: Publish package to Prod PyPi
188189
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
189-
uses: pypa/gh-action-pypi-publish@release/v1
190+
uses: pypa/gh-action-pypi-publish@release/v1.8.7
190191
with:
191192
user: __token__
192193
password: ${{ secrets.PROD_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)