Skip to content

Commit 033c8d1

Browse files
committed
ci: publish with github secret
1 parent 9f40101 commit 033c8d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/pythonpublish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
env:
2424
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
2525
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2627
run: |
2728
./scripts/publish

scripts/publish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Publish to pypi
22
poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
33

4-
[ -z "${INPUT_GITHUB_TOKEN}" ] && {
4+
[ -z "${GITHUB_TOKEN}" ] && {
55
echo 'Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".';
66
exit 1;
77
};
88

9-
remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/commitizen.git"
9+
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/commitizen.git"
1010

1111
# Publish docs
1212
mkdocs gh-deploy --remote-name "${remote_repo}"

0 commit comments

Comments
 (0)