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 : Build and deploy mirror
2+
3+ on :
4+ schedule :
5+ # Nightly at 03:00 UTC.
6+ - cron : " 0 3 * * *"
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : pages
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout backup data
23+ uses : actions/checkout@v6
24+ with :
25+ ref : master
26+ path : backup
27+
28+ - name : Checkout mirror tool
29+ uses : actions/checkout@v6
30+ with :
31+ repository : 0xB10C/github-metadata-mirror
32+ ref : master
33+ path : tool
34+
35+ - name : Setup Python
36+ uses : actions/setup-python@v5
37+ with :
38+ python-version : " 3.11"
39+
40+ - name : Install dependencies
41+ run : pip install mistune
42+
43+ - name : Build mirror
44+ working-directory : tool
45+ run : |
46+ python build.py \
47+ --input ../backup \
48+ --output ../public \
49+ --title "Bitcoin Core GUI GitHub Mirror" \
50+ --owner bitcoin-core \
51+ --repository gui \
52+ --base-url "/github-metadata-backup-bitcoin-core-gui/" \
53+ --markdown
54+
55+ - name : Configure Pages
56+ uses : actions/configure-pages@v5
57+
58+ - name : Upload Pages artifact
59+ uses : actions/upload-pages-artifact@v3
60+ with :
61+ path : public
62+
63+ deploy :
64+ needs : build
65+ runs-on : ubuntu-slim
66+ environment :
67+ name : github-pages
68+ url : ${{ steps.deployment.outputs.page_url }}
69+ steps :
70+ - name : Deploy to GitHub Pages
71+ id : deployment
72+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments