File tree 1 file changed +10
-21
lines changed 1 file changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ jobs:
15
15
profile : minimal
16
16
toolchain : stable
17
17
override : true
18
+
18
19
- name : install protoc
19
20
run : sudo apt-get -o Acquire::Retries=3 install -y protobuf-compiler
20
21
- uses : actions-rs/cargo@v1
21
22
with :
22
23
command : doc
23
24
args : --no-deps
25
+
24
26
- name : Archive docs
25
27
shell : sh
26
28
run : |
@@ -35,39 +37,26 @@ jobs:
35
37
--exclude=.git \
36
38
--exclude=.github \
37
39
.
38
- - name : Upload artifact
39
- uses : actions/upload-artifact@v4
40
+
41
+ - name : Upload static files as artifact
42
+ uses : actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
40
43
with :
41
- name : github-pages
42
- path : ${{ runner.temp }}/artifact.tar
43
- retention-days : 1
44
+ path:${{ runner.temp }}/artifact.tar
44
45
45
- # Deploy job
46
+ # Deployment job
46
47
deploy :
47
- # Add a dependency to the build job
48
- needs : build
49
-
50
48
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
51
49
permissions :
52
50
pages : write # to deploy to Pages
53
51
id-token : write # to verify the deployment originates from an appropriate source
54
52
55
- # Deploy to the github-pages environment
56
53
environment :
57
54
name : github-pages
58
55
url : ${{ steps.deployment.outputs.page_url }}
59
-
60
- # Specify runner + deployment step
56
+
61
57
runs-on : ubuntu-latest
58
+ needs : build
62
59
steps :
63
- - name : Download artifact
64
- uses : actions/download-artifact@v4
65
- with :
66
- name : github-pages
67
- path : ./site
68
60
- name : Deploy to GitHub Pages
69
61
id : deployment
70
- uses : actions/deploy-pages@v3
71
- with :
72
- artifact_name : github-pages
73
- path : ./site
62
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments