Skip to content

fix: correct env var name for publish to pypi test #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: Publish to PyPi

on:
release:
types: [published]
types: [published]

jobs:
upload:
Expand Down Expand Up @@ -50,13 +50,13 @@ jobs:
run: make release-test
env:
PYPI_USERNAME: __token__
PYPI_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
- name: Upload to PyPi prod
run: make release-prod
env:
PYPI_USERNAME: __token__
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

sync_master:
needs: upload
runs-on: ubuntu-latest
Expand All @@ -66,5 +66,5 @@ jobs:
# If version matches CHANGELOG and pyproject.toml
# If it passes all checks, successfully releases to test and prod
# Then sync up master with latest source code release
# where commit message will be Release notes title
# where commit message will be Release notes title
run: git push origin HEAD:refs/heads/master --force