Skip to content

Commit

Permalink
Fix YAML comment syntax (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
daneah authored Feb 10, 2022
1 parent c428184 commit 9c4f151
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/ch08-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,28 +125,27 @@ jobs:
with:
path: ./ch08/first-python-package/wheels/*.whl # Update to match root of package

""" Avoid double-publishing from other workflows
publish:
name: Publish package
if: startsWith(github.event.ref, 'refs/tags/v')
needs:
- format
- lint
- typecheck
- test
- build_source_dist
- build_wheels
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: ./ch08/first-python-package/dist # Update to match root of package
- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ./ch08/first-python-package/dist/ # You don't need this in your package
"""
# Avoid double-publishing from other workflows
# publish:
# name: Publish package
# if: startsWith(github.event.ref, 'refs/tags/v')
# needs:
# - format
# - lint
# - typecheck
# - test
# - build_source_dist
# - build_wheels
# runs-on: ubuntu-latest

# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: ./ch08/first-python-package/dist # Update to match root of package

# - uses: pypa/gh-action-pypi-publish@v1.4.2
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# packages_dir: ./ch08/first-python-package/dist/ # You don't need this in your package

0 comments on commit 9c4f151

Please sign in to comment.