Skip to content

Commit

Permalink
Fix release wflow
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Oct 5, 2022
1 parent 9913239 commit 045f94e
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/release.yml
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,30 +36,30 @@ jobs:
password: ${{ secrets.PYPY_API_TOKEN }}
packages_dir: ./dist/

docs:
runs-on: ubuntu-latest
needs:
- deploy
docs:
runs-on: ubuntu-latest
needs:
- deploy

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install -r requirements-docs.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install -r requirements-docs.txt
- name: Build
run: sphinx-build ./docs ./docs/_build
- name: Build
run: sphinx-build ./docs ./docs/_build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build

0 comments on commit 045f94e

Please sign in to comment.