Commit 18e2a50 1 parent 6e66e8a commit 18e2a50 Copy full SHA for 18e2a50
File tree 3 files changed +22
-41
lines changed
3 files changed +22
-41
lines changed Original file line number Diff line number Diff line change 99
99
100
100
cp -r docs/* .
101
101
102
- sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md
102
+ sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md ${{ env.ARTIFACT }}
103
103
104
104
git add .
105
105
git commit -am "Automatic deployment"
Original file line number Diff line number Diff line change 14
14
15
15
permissions :
16
16
contents : write
17
+ pages : write
17
18
id-token : write
18
19
20
+ concurrency :
21
+ group : " pages"
22
+ cancel-in-progress : false
23
+
19
24
jobs :
20
25
build :
21
26
runs-on : ubuntu-latest
68
73
needs : test
69
74
runs-on : ubuntu-latest
70
75
76
+ environment :
77
+ name : github-pages
78
+ url : ${{ steps.deployment.outputs.page_url }}
79
+
71
80
steps :
72
81
- uses : actions/checkout@v4
73
82
with :
@@ -99,8 +108,19 @@ jobs:
99
108
100
109
cp -r docs/* .
101
110
102
- sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md
111
+ sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md ${{ env.ARTIFACT }}
103
112
104
113
git add .
105
114
git commit -am "Automatic deployment"
106
115
git push --force origin preview-deployment
116
+
117
+ - name : Setup Pages
118
+ uses : actions/configure-pages@v5
119
+ - name : Upload artifact
120
+ uses : actions/upload-pages-artifact@v3
121
+ with :
122
+ # Upload entire repository
123
+ path : ' .'
124
+ - name : Deploy to GitHub Pages
125
+ id : deployment
126
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments