forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.02 KB
/
push-master.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
name: Master
on:
push:
branches:
- master
jobs:
# publish to gh-pages (& IPFS when a release is detected)
www:
strategy:
matrix:
step: ['build:www']
name: ${{ matrix.step }}
if: "! startsWith(github.event.head_commit.message, '[CI Skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: ${{ matrix.step }}
env:
GH_PAGES_SRC: packages/apps/build
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.STAGING_DEPLOY_KEY }}
external_repository: docknetwork/polkadot-fe-staging
publish_dir: ./packages/apps/build
cname: fe-staging.dock.io
# dummy, GH actions fails outright when all steps are skipped (like it can be above)
dummy:
runs-on: ubuntu-latest
steps:
- name: dummy
run: |
echo "Dummy skip step"