Merge pull request #8 from baluyotraf/feature/0.0.2 #5
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: release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- uses: abatilo/actions-poetry@v2 | |
- run: git fetch origin gh-pages --depth=1 | |
- run: poetry install --with docs | |
- run: | | |
GIT_COMMITTER_NAME=actions \ | |
GIT_COMMITTER_EMAIL=actions@github.com \ | |
poetry run mike deploy ${{ github.ref_name }} stable -u -p | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- uses: abatilo/actions-poetry@v2 | |
- run: poetry build | |
- run: poetry publish --dry-run | |
- env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPITOKEN }} | |
run: poetry publish |