File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build and deploy
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ workflow_dispatch :
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout source
18
+ uses : actions/checkout@v4
19
+ - name : Setup node.js
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 21
23
+ - name : Install node dependencies
24
+ run : npm install
25
+ - name : Build site
26
+ run : |
27
+ PREFIX_PATHS=true npm run build
28
+ mkdir website
29
+ mv public website/training-center
30
+ cp redirect.html website/index.html
31
+ - name : Upload artifact
32
+ uses : actions/upload-pages-artifact@v3
33
+ with :
34
+ path : ./website
35
+ deploy :
36
+ if : github.event_name == 'push'
37
+ needs : build
38
+ runs-on : ubuntu-latest
39
+ permissions :
40
+ pages : write
41
+ id-token : write
42
+ environment :
43
+ name : github-pages
44
+ url : ${{ steps.deployment.outputs.page_url }}
45
+ steps :
46
+ - name : Deploy to GitHub Pages
47
+ id : deployment
48
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ TZ = " Europe/Paris"
2
+
3
+ [build ]
4
+ publish = " _site"
5
+ command = " bundler exec jekyll build"
6
+
7
+ [build .environment ]
8
+ RUBY_VERSION =3.2 .6
9
+ NODE_VERSION =21 .X
You can’t perform that action at this time.
0 commit comments