-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,19 +87,19 @@ jobs: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
function prun() { | ||
nix develop -c poetry run "$@" | ||
nix develop -c poetry run python -m "$@" | ||
} | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
prun python -m semantic_release version | ||
prun semantic_release version | ||
export TWINE_USERNAME="__token__" | ||
export TWINE_PASSWORD="${PYPI_TOKEN}" | ||
prun twine upload -r testpypi dist/* | ||
export GH_TOKEN="${GITHUB_TOKEN}" | ||
prun python -m semantic_release publish | ||
prun semantic_release publish | ||
- name: Save release commit hash | ||
id: release-commit-hash | ||
run: echo "::set-output name=release-commit-hash::$(git rev-parse HEAD)" | ||
|