File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Mirror Pages
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ source_run_id :
7+ description : Workflow run ID in cppsocial/site containing the Pages artifact
8+ required : true
9+ type : string
10+
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : pages
18+ cancel-in-progress : false
19+
20+ jobs :
21+ mirror :
22+ environment :
23+ name : github-pages
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Download source Pages artifact
27+ uses : actions/download-artifact@v4
28+ with :
29+ name : github-pages
30+ path : source-artifact
31+ github-token : ${{ secrets.GH_IO_SOURCE }}
32+ repository : cppsocial/site
33+ run-id : ${{ inputs.source_run_id }}
34+ - name : Verify source Pages artifact
35+ run : test -f source-artifact/artifact.tar
36+ - name : Upload mirror Pages artifact
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : github-pages
40+ path : source-artifact/artifact.tar
41+ retention-days : 1
42+ if-no-files-found : error
43+ deploy :
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ needs : mirror
49+ steps :
50+ - id : deployment
51+ uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments