@@ -5,58 +5,58 @@ name: CI
55# Controls when the action will run. Triggers the workflow on push or pull request
66# events but only for the master branch
77on :
8- push :
9- branches : [ master ]
10- pull_request :
11- branches : [ master ]
8+ push :
9+ branches : [master]
10+ pull_request :
11+ branches : [master]
1212
1313# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414jobs :
15- # This workflow contains a single job called "build"
16- build :
17- # The type of runner that the job will run on
18- runs-on : ubuntu-latest
15+ # This workflow contains a single job called "build"
16+ build :
17+ # The type of runner that the job will run on
18+ runs-on : ubuntu-latest
1919
20- # Steps represent a sequence of tasks that will be executed as part of the job
21- steps :
22- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23- - uses : actions/checkout@v2
24-
25- - name : Cache node modules
26- uses : actions/cache@v1
27- with :
28- path : node_modules
29- key : ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
30- restore-keys : |
31- ${{ runner.OS }}-build-${{ env.cache-name }}-
32- ${{ runner.OS }}-build-
33- ${{ runner.OS }}-
20+ # Steps represent a sequence of tasks that will be executed as part of the job
21+ steps :
22+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+ - uses : actions/checkout@v2
3424
35- - name : Install Dependencies
36- run : npm ci
37- - name : Build doc
38- run : npm run doc
39- - name : Archive www Artifact
40- uses : actions/upload-artifact@master
41- with :
42- name : documentation
43- path : documentation
44- deploy :
45- name : Deploy 🚀
46- needs : [build]
47- runs-on : ubuntu-latest
48- steps :
49- - name : Checkout Repo
50- uses : actions/checkout@master
51- - name : Download Artifact
52- uses : actions/download-artifact@master
53- with :
54- name : documentation
55- path : documentation
56- - name : Deploy to github pages
57- 58- with :
59- GITHUB_TOKEN : ${{ secrets.COMPODOC_GITHUB_PAGES_TOKEN }}
60- BRANCH : gh-pages # The branch the action should deploy to.
61- FOLDER : documentation # The folder the action should deploy.
62- CLEAN : true # Automatically remove deleted files from the deploy branch
25+ - name : Cache node modules
26+ uses : actions/cache@4
27+ with :
28+ path : node_modules
29+ key : ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
30+ restore-keys : |
31+ ${{ runner.OS }}-build-${{ env.cache-name }}-
32+ ${{ runner.OS }}-build-
33+ ${{ runner.OS }}-
34+
35+ - name : Install Dependencies
36+ run : npm ci
37+ - name : Build doc
38+ run : npm run doc
39+ - name : Archive www Artifact
40+ uses : actions/upload-artifact@master
41+ with :
42+ name : documentation
43+ path : documentation
44+ deploy :
45+ name : Deploy 🚀
46+ needs : [build]
47+ runs-on : ubuntu-latest
48+ steps :
49+ - name : Checkout Repo
50+ uses : actions/checkout@master
51+ - name : Download Artifact
52+ uses : actions/download-artifact@master
53+ with :
54+ name : documentation
55+ path : documentation
56+ - name : Deploy to github pages
57+ 58+ with :
59+ GITHUB_TOKEN : ${{ secrets.COMPODOC_GITHUB_PAGES_TOKEN }}
60+ BRANCH : gh-pages # The branch the action should deploy to.
61+ FOLDER : documentation # The folder the action should deploy.
62+ CLEAN : true # Automatically remove deleted files from the deploy branch
0 commit comments