developers/.github/workflows/gh-pages.yml

111 lines
3.1 KiB
YAML
Raw Normal View History

name: GitHub Pages
on:
push:
branches:
- main
schedule:
- cron: "42 22 * * *"
workflow_dispatch:
jobs:
deploy:
2023-04-20 09:54:18 -07:00
runs-on: ubuntu-latest
steps:
2023-04-20 09:54:18 -07:00
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
2021-05-06 17:32:34 -07:00
- 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@v2
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
2021-06-15 09:45:59 -07:00
- name: Render ECC core DAG
2021-06-15 09:05:32 -07:00
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
SHOW_MILESTONES: true
2021-06-15 09:45:59 -07:00
- name: Render ECC wallet DAG
2021-06-15 09:06:21 -07:00
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: wallet
SHOW_MILESTONES: 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
- 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
2021-06-15 09:06:21 -07:00
2021-06-15 09:45:59 -07:00
- name: Render ZF DAG
run: python3 ./zcash-issue-dag.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENHUB_TOKEN: ${{ secrets.ZENHUB_TOKEN }}
DAG_VIEW: zf
2022-03-14 07:55:58 -07:00
SHOW_EPICS: true
2021-06-15 09:45:59 -07:00
2022-02-07 07:46:12 -08:00
- 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
2021-05-06 18:12:18 -07:00
- 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