-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (58 loc) · 1.87 KB
/
publish-pages.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
52
53
54
55
56
57
58
59
60
61
62
63
# This is a basic workflow to help you get started with Actions
name: deploy_sphinx
permissions:
id-token: write
pages: write
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
# dispatch from the main repo, needs PAT with access to both repos
repository_dispatch:
types: [spec-update]
# run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Checkout spec repo
uses: actions/checkout@v4
with:
repository: SampleEnvironment/SECoP
path: ./SECoP
- name: copy spec into correct folder
run: cp -r ./SECoP/protocol/specification/* source/specification
- name: copy 1-0 spec into correct folder
run: cp ./SECoP/protocol/SECoP_Specification_V1.0.rst source/specification/SECoP_Specification_V1.0.rst
- name: Import secop-img SVGs
uses: robinraju/[email protected]
with:
repository: 'Bilchreis/secop-img'
latest: true
tarBall: false
zipBall: false
fileName: '*.svg'
out-file-path: 'source/specification/images/secop-img'
- name: install sphinx
run: pip install -r requirements.txt
- name: build with sphinx
run: make html
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: ./build/html
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4