-
Notifications
You must be signed in to change notification settings - Fork 11
164 lines (139 loc) · 4.96 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: GitHub Pages
on:
push:
branches:
- main
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: python3 -m pip install -r ./requirements.txt
- name: Fetch GitHub GraphQL schema
run: |
python3 -m sgqlc.introspection \
--exclude-deprecated \
--exclude-description \
-H "Authorization: bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/graphql \
github_schema.json
- name: Generate GitHub GraphQL schema module
run: sgqlc-codegen schema github_schema.json github_schema.py
- name: Fetch ZenHub GraphQL schema
run: |
python3 -m sgqlc.introspection \
--exclude-description \
-H "Authorization: Bearer ${{ secrets.ZENHUB_TOKEN }}" \
https://api.zenhub.com/public/graphql \
zenhub_schema.json
- name: Generate ZenHub GraphQL schema module
run: sgqlc-codegen schema zenhub_schema.json zenhub_schema.py
- name: Render ECC core DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
SHOW_MILESTONES: true
- name: Render Halo2-focused DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: halo2
SHOW_MILESTONES: true
- name: Render TFL-focused DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: tfl
SHOW_MILESTONES: true
- name: Render ECC wallet DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: wallet
SHOW_MILESTONES: true
SHOW_EPICS: true
- name: Render ECC iOS Wallet DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: wallet-ios
SHOW_MILESTONES: true
SHOW_EPICS: true
- name: Render ECC Android Wallet DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: wallet-android
SHOW_MILESTONES: true
SHOW_EPICS: true
- name: Render ZF DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: zf
SHOW_EPICS: true
continue-on-error: true
- name: Render zcashd deprecation DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: zcashd-deprecation
TERMINATE_AT: "zcash/wallet#5,zcash/wallet#6,zcash/zcash#5796"
- name: Render Sprout pool deprecation DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: sprout-deprecation
TERMINATE_AT: "zcash/zcash#4202"
- name: Render transparent pool deprecation DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: transparent-deprecation
TERMINATE_AT: "zcash/zcash#4203"
- name: Render Zashi pipeline
run: python3 ./zashi-pipeline.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
- name: Copy the index page
run: cp ./index.html ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public