Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Mar 19, 2023
1 parent dd39242 commit 8d64c06
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/deploy.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release

on:
push:
tags: [ 'v*' ]

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
id: install-deps
run:
python3 -m pip install --upgrade pip
pip install -r requirements.txt
# - name: nitpick
# id: nitpick
# run:
# sphinx-build -b html -n . _build/html
# - name: linkcheck
# id: linkcheck
# run:
# sphinx-build -b linkcheck . _build/linkcheck
# - name: spelling
# id: spelling
# run:
# sphinx-build -b spelling . _build/spelling

release:
name: Publish
needs: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
id: install-deps
run:
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build HTML
id: build
run:
sphinx-build -b html -d _build/doctrees . _build/html

- name: Publish to GitHub Pages
id: publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html

- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}

0 comments on commit 8d64c06

Please sign in to comment.