Pin version of pypa/gh-action-pypi-publish

This commit is contained in:
Antoine Nguyen
2023-04-22 11:58:06 +02:00
parent aea89db9fa
commit 6dcdfb72b3
+4 -4
View File
@@ -159,10 +159,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.8'
- name: Build frontend
shell: bash -l {0}
run: |
@@ -184,7 +184,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish to Test PyPI
if: endsWith(github.event.ref, '/master')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
@@ -192,7 +192,7 @@ jobs:
skip_existing: true
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}