-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (37 loc) · 1.21 KB
/
ci.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
# Note gh-pages is *not* the host presently, fleek is.
# Fleek renders files when a push to `gh-pages` by this CI happens.
name: Build and deploy to `gh-pages`
on:
push:
branches:
- main
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Yarn
uses: bahmutov/npm-install@HEAD
with:
working-directory: .
- name: Build internal use static slides
run: |
yarn build-internal-static-slides
- name: Deploy `internal-static-slides` branch https://do-not-share-pba-internal.on.fleek.co/
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: internal-static-slides
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build student use static slides
run: |
yarn build-student-static-slides
- name: Deploy `student-static-slides` branch to https://polkadot-blockchain-academy.on.fleek.co/
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: student-static-slides
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}