-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.75 KB
/
sphinx-web.yml
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
43
44
45
46
47
48
49
50
51
# This is a basic workflow to help you get started with Actions
name: Sphinx Doc for replab-web
# Controls when the action will run.
on: [workflow_dispatch]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
name: Build the Sphinx documentation for the develop branch of replab
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out replab-web repository
uses: actions/checkout@v2
with:
repository: replab/web
ref: main
submodules: recursive
- name: Check out doc repository
uses: actions/checkout@v2
with:
ref: gh-pages
path: docs
persist-credentials: false
fetch-depth: 0
- name: Set variable
id: vars
run: echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Calling docker launch action
id: dock
uses: replab/websiteDev/.github/actions/sphinx-octave@main
with:
commit: ${{ steps.vars.outputs.sha }}
- name: Commit files
run: |
cd docs
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
directory: docs
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages