File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy GH Pages
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - dev
8+
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow one concurrent deployment
16+ concurrency :
17+ group : pages
18+ cancel-in-progress : true
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+ name : Build site and deploy to GHPages
24+ steps :
25+ - name : Install node 16
26+ uses : actions/setup-node@v3
27+ with :
28+ node-version : ' 16'
29+ cache : npm
30+
31+ - run : npm ci
32+ - run : npm install babel-cli
33+ - run : mkdir -p dist
34+ - run : npm run babel
35+ - run : npm run build
36+ # Be sure that all provided URLs are valid
37+ - run : set -e && for url in $(jq .[].projectWebsite app/data/projects.json | tr -d \"); do if [ "$url" != "null" ]; then echo "${url}"; curl "${url}" -o /dev/null --fail -L; fi; done
38+ - run : set -e && for url in $(jq .[].projectRepository app/data/projects.json | tr -d \"); do if [ "$url" != "null" ]; then echo "${url}"; curl "${url}" -o /dev/null --fail -L; fi; done
39+
40+ # Automatically uploads an artifact from the './_site' directory by default
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v1
43+ with :
44+ path : dist
45+
46+ # Deployment job
47+ deploy :
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ runs-on : ubuntu-latest
52+ needs : build
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments