File tree Expand file tree Collapse file tree 1 file changed +37
-16
lines changed Expand file tree Collapse file tree 1 file changed +37
-16
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,48 @@ name: Pages Build
2
2
on :
3
3
push :
4
4
branches : [ main ]
5
+ paths-ignore :
6
+ - " README.md"
7
+ - " README.txt"
8
+
5
9
workflow_dispatch :
10
+
11
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
17
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19
+ concurrency :
20
+ group : " pages"
21
+ cancel-in-progress : false
22
+
6
23
jobs :
7
- build :
8
- name : Build GitHub Pages
24
+ deploy :
25
+ environment :
26
+ name : github-pages
27
+ url : ${{ steps.deployment.outputs.page_url }}
9
28
runs-on : windows-latest
10
29
steps :
11
- - uses : actions/setup-node@v2
12
- with :
13
- node-version : 17.5.0
14
- - uses : actions/checkout@v2
30
+ - name : Checkout
31
+ uses : actions/checkout@v3
15
32
with :
16
33
fetch-depth : 0
17
- - name : Build and Commit
34
+ - uses : actions/setup-node@v2
35
+ with :
36
+ node-version : ' >=18.0'
37
+ - name : Build
18
38
run : |
19
- git config user.name "GitHub Actions"
20
- git config user.email "<>"
21
- git branch -f pages main
22
- git checkout pages
23
39
npm ci
24
- git rm docs -f -r --ignore-unmatch
25
- npx gulp-cli build
26
- git add docs -f
27
- git commit -m "GitHub Actions"
28
- git push origin pages -f
40
+ npx gulp build
41
+ - name : Setup Pages
42
+ uses : actions/configure-pages@v3
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v1
45
+ with :
46
+ path : ' docs'
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments