Skip to content

Commit

Permalink
ci(github): Set default value for TWINE_USERNAME env to '__token__'. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Nov 1, 2023
1 parent bd7c5e8 commit 6a9b1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- env:
TWINE_NON_INTERACTIVE: true
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: ${{ vars.TWINE_USERNAME }}
TWINE_USERNAME: ${{ vars.TWINE_USERNAME != '' && vars.TWINE_USERNAME || '__token__' }}
run: make upload
pages-build:
runs-on: ubuntu-latest
Expand Down
Expand Up @@ -15,7 +15,7 @@ jobs:
- env:
TWINE_NON_INTERACTIVE: true
TWINE_PASSWORD: {{ '${{ secrets.TWINE_PASSWORD }}' }}
TWINE_USERNAME: {{ '${{ vars.TWINE_USERNAME }}' }}
TWINE_USERNAME: {{ '${{ vars.TWINE_USERNAME != \'\' && vars.TWINE_USERNAME || \'__token__\' }}' }}
run: make upload
pages-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6a9b1b0

Please sign in to comment.