Skip to content

Commit 37b4e6e

Browse files
authored
fix(release): add gh token to env (#556)
Release script is failing, asking to set the GH_TOKEN env variable to use gh CLI. This adds it in the step. https://cli.github.com/manual/gh_auth_login
1 parent 87717bc commit 37b4e6e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
- name: Get version
1919
run: |
2020
echo "version=$(date +'%Y.%m.%d.%H.%M')" >> "$GITHUB_ENV"
21-
- run: |
22-
git tag $version
23-
git push origin $version
24-
pip install poetry
25-
poetry self add poetry-dynamic-versioning[plugin]
26-
poetry install --sync
27-
poetry build
28-
gh release create --generate-notes $version ./dist/*
21+
- name: Tag and release
22+
env:
23+
GH_TOKEN: ${{ github.token }}
24+
run: |
25+
git tag $version
26+
git push origin $version
27+
pip install poetry
28+
poetry self add poetry-dynamic-versioning[plugin]
29+
poetry install --sync
30+
poetry build
31+
gh release create --generate-notes $version ./dist/*
2932
- name: Publish package distributions to PyPI
3033
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)