v0.7.0 #26
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: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
pypi: | |
name: Pypi release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run pre-release script | |
id: prerelease | |
run: ./scripts/pre-release.sh | |
- name: Build and publish | |
uses: JRubics/[email protected] | |
if: steps.prerelease.conclusion == 'success' | |
with: | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
ignore_dev_requirements: "yes" | |
docs: | |
name: Stable docs release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Install dependencies | |
run: | | |
pip install -U pip | |
poetry install | |
- name: Build and deploy | |
run: | | |
git config --global user.name "Jonxslays" | |
git config --global user.email "[email protected]" | |
git fetch origin gh-pages --depth=1 | |
poetry run mike deploy --push --update-aliases $GITHUB_REF_NAME stable |