-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from laixintao/release-ci
add release ci: upload to pypi on tag push.
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
release-pypi: | ||
name: release-pypi | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- name: Install Dependencies | ||
run: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -U pip | ||
pip install poetry | ||
poetry install | ||
python -c "import sys; print(sys.version)" | ||
pip list | ||
- name: Poetry Build | ||
run: | | ||
. venv/bin/activate | ||
poetry build | ||
- name: Test Build | ||
run: | | ||
python3 -m venv fresh_env | ||
. fresh_env/bin/activate | ||
pip install dist/*.whl | ||
flameshow --version | ||
- name: Upload to Pypi | ||
env: | ||
PASSWORD: ${{ secrets.FLAMESHOW_PYPI_TOKEN }} | ||
run: | | ||
. venv/bin/activate | ||
poetry publish --username __token__ --password ${PASSWORD} |
This file was deleted.
Oops, something went wrong.