-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified from agda/agda/.github/workflows/user-manual.yml
- Loading branch information
1 parent
5d0d958
commit d7a2add
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Adapted from agda/agda/.github/workflows/user-manual.yml by Andreas, 2021-09-11 | ||
|
||
name: Users guide | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'doc/requirements.txt' | ||
- 'doc/*.inc' | ||
- 'doc/*.py' | ||
- 'doc/*.rst' | ||
- 'doc/**/*.json' | ||
- '.github/workflows/users-guide.yml' | ||
pull_request: | ||
paths: | ||
- 'doc/requirements.txt' | ||
- 'doc/*.inc' | ||
- 'doc/*.py' | ||
- 'doc/*.rst' | ||
- 'doc/**/*.json' | ||
- '.github/workflows/users-guide.yml' | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
if: | | ||
!contains(github.event.head_commit.message, '[skip ci]') | ||
&& !contains(github.event.head_commit.message, '[ci skip]') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Subsumed by make users-guide | ||
# - name: Install dependencies | ||
# run: | | ||
# pip install -r doc/requirements.txt | ||
|
||
- name: Build User's Guide in HTML | ||
run: | | ||
make SPHINX_HTML_OUTDIR=html users-guide | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: users-guide-html | ||
path: html/ |