Skip to content

Commit a9a6e93

Browse files
authored
fix(ci) Add token variable for release workfow (#6)
1 parent bb0e333 commit a9a6e93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ jobs:
4040
run: npm -g update npm
4141

4242
- name: Run semantic release (for tests)
43-
if: ${{ github.event_name != 'workflow_dispatch' }}
43+
if: ${{ github.event_name == 'workflow_dispatch' }}
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
4647
run: makim release.dry
4748

4849
- name: Release command
4950
if: ${{ github.event_name == 'workflow_dispatch' }}
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
5351
run: |
5452
makim release.ci
5553

0 commit comments

Comments
 (0)