File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 90
90
- gendocs-c
91
91
- gendocs-android
92
92
- gendocs-ios
93
+ outputs :
94
+ artifact_id : ${{ steps.upload_artifact.outputs.artifact_id }}
93
95
94
96
steps :
95
97
- name : Checkout
@@ -128,7 +130,27 @@ jobs:
128
130
DOCS_URL : /tmp/docs/
129
131
130
132
- name : Upload artifact
131
- uses : actions/upload-artifact@v4
133
+ id : upload_artifact
134
+ uses : actions/upload-pages-artifact@v3
132
135
with :
133
136
name : site-build
134
137
path : __public__
138
+
139
+ deploy :
140
+ runs-on : ubuntu-24.04
141
+ if : github.ref_name == 'main'
142
+ needs :
143
+ - build
144
+ permissions :
145
+ pages : write
146
+ id-token : write
147
+ environment :
148
+ name : github-pages
149
+ url : ${{ steps.deploy.outputs.page_url }}
150
+
151
+ steps :
152
+ - name : Deploy to GitHub Pages
153
+ id : deploy
154
+ uses : actions/deploy-pages@v4
155
+ with :
156
+ artifact_name : ${{ needs.build.outputs.artifact_id }}
You can’t perform that action at this time.
0 commit comments