diff --git a/.github/workflows/release_to_pypi.yml b/.github/workflows/release_to_pypi.yml index a3a8db9..088a1c8 100644 --- a/.github/workflows/release_to_pypi.yml +++ b/.github/workflows/release_to_pypi.yml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@main - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@main with: python-version: "3.x" @@ -25,14 +25,14 @@ jobs: python -m build twine check --strict dist/* - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@main with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} - name: Create GitHub Release id: create_release - uses: actions/create-release@v1 + uses: actions/create-release@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: @@ -48,7 +48,7 @@ jobs: echo "name=$1" >> $GITHUB_ENV - name: Upload Release Asset (sdist) to GitHub id: upload-release-asset - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: