-
-
Notifications
You must be signed in to change notification settings - Fork 53
42 lines (31 loc) · 823 Bytes
/
Copy pathdoc.yml
File metadata and controls
42 lines (31 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Doc
env:
GITHUB_ACTOR: michaelb
GITHUB_REPOSITORY: michaelb/sniprun
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: [ master ]
workflow_dispatch:
permissions: {}
jobs:
build_sphinx_job:
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
steps:
- name: Get prerequisites and clone repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
sudo apt-get update
sudo apt-get install -y git
git clone "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" .
shell: bash
- name: Run build script for Sphinx pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "doc/build.sh"
shell: bash