File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed
Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ name: Deploy static content to Pages
22
33on :
44 push :
5- branches : ["main"]
5+ branches :
6+ - main
67 workflow_dispatch :
78
89permissions :
@@ -11,7 +12,7 @@ permissions:
1112 id-token : write
1213
1314concurrency :
14- group : " pages"
15+ group : " deploy- pages"
1516 cancel-in-progress : false
1617
1718env :
@@ -22,18 +23,30 @@ jobs:
2223 environment :
2324 name : github-pages
2425 url : ${{ steps.deployment.outputs.page_url }}
25- runs-on : ubuntu-latest
26+ runs-on : ubuntu-22.04
2627 steps :
27- - name : Checkout
28- uses : actions/checkout@v3
28+ - name : Checkout repository
29+ uses : actions/checkout@v4
30+
31+ - name : Setup Node.js
32+ uses : actions/setup-node@v3
33+ with :
34+ node-version : " 18"
35+
36+ - name : Install dependencies
37+ run : npm ci
38+
2939 - name : Generate opensearch.xml
3040 run : npm run opensearch assets/opensearch.xml
31- - name : Setup Pages
32- uses : actions/configure-pages@v3
33- - name : Upload artifact
34- uses : actions/upload-pages-artifact@v1
41+
42+ - name : Configure GitHub Pages
43+ uses : actions/configure-pages@v5
44+
45+ - name : Upload Pages artifact
46+ uses : actions/upload-pages-artifact@v3
3547 with :
3648 path : " ."
49+
3750 - name : Deploy to GitHub Pages
3851 id : deployment
39- uses : actions/deploy-pages@v2
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments