DOC: Do not use master in examples

to be consistent with the "pro tip"
This commit is contained in:
P. L. Lim 2021-01-22 09:36:17 -05:00 committed by GitHub
parent f91f98d65e
commit 3f53700db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ To use the action add the following step to your workflow file (e.g.
```yml ```yml
- name: Publish a Python distribution to PyPI - name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}
@ -38,7 +38,7 @@ So the full step would look like:
```yml ```yml
- name: Publish package - name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}
@ -78,7 +78,7 @@ You'll need to create another token for a separate host and then
The action invocation in this case would look like: The action invocation in this case would look like:
```yml ```yml
- name: Publish package to TestPyPI - name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }} password: ${{ secrets.TEST_PYPI_API_TOKEN }}
@ -93,7 +93,7 @@ would now look like:
```yml ```yml
- name: Publish package to PyPI - name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}