File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : deploy_github_pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - " .github/workflows/deploy_github_pages.yml"
9+ - " make_ver/**"
10+ - " language_reference/**"
11+ - " static/**"
12+
13+ jobs :
14+
15+ build :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Build static files
19+ id : build
20+ run : make build_language_reference_docker
21+
22+ - name : Organise Output Folder
23+ id : organise
24+ run : |
25+ mkdir -p build/api/v1/
26+ cp api/v1/language_reference.json build/api/v1/language_reference.json
27+ cp static/language_reference.html build/index.html
28+
29+ - name : Upload static files as artifact
30+ id : deployment
31+ uses : actions/upload-pages-artifact@v4
32+ with :
33+ path : build/
34+
35+ deploy :
36+ environment :
37+ name : github-pages
38+ url : ${{ steps.deployment.outputs.page_url }}
39+ runs-on : ubuntu-latest
40+ needs : build
41+ steps :
42+ - name : Deploy to GitHub Pages
43+ id : deployment
44+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments