renaming #1
Workflow file for this run
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
name: Publish Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v** | |
jobs: | |
pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: set up Poetry | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: "1.3.1" | |
- name: get version | |
id: get_version | |
run: echo "VERSION=$(echo ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV | |
- name: set version | |
run: poetry version ${{ env.VERSION }} | |
- name: publish | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} | |
run: poetry publish --build | |
- name: Create GitHub release entry | |
uses: softprops/action-gh-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
name: ${{ env.VERSION }} | |
tag_name: ${{ env.VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: verify | |
shell: bash | |
run: for i in {1..100}; do sleep 2; python -m pip install 'nicegui==${{ env.VERSION }}' && break; done; sleep 5 |