Skip to content

Commit

Permalink
fix(release): add gh token to env (#556)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lecrepont01 authored Nov 28, 2024
1 parent 87717bc commit 37b4e6e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
- name: Get version
run: |
echo "version=$(date +'%Y.%m.%d.%H.%M')" >> "$GITHUB_ENV"
- run: |
git tag $version
git push origin $version
pip install poetry
poetry self add poetry-dynamic-versioning[plugin]
poetry install --sync
poetry build
gh release create --generate-notes $version ./dist/*
- name: Tag and release
env:
GH_TOKEN: ${{ github.token }}
run: |
git tag $version
git push origin $version
pip install poetry
poetry self add poetry-dynamic-versioning[plugin]
poetry install --sync
poetry build
gh release create --generate-notes $version ./dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 37b4e6e

Please sign in to comment.