-
Notifications
You must be signed in to change notification settings - Fork 2.1k
34 lines (32 loc) · 1.11 KB
/
publish.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
name: Publish website
on:
push:
branches:
- master
jobs:
build:
if: github.repository_owner == 'w3f'
name: build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version: "16.16.0"
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Publish
run: |
git config --global user.email "[email protected]"
git config --global user.name "grants-deployer"
echo "machine github.com login grants-deployer password ${{ secrets.ACCESS_KEY }}" > ~/.netrc
yarn && yarn build && GIT_USER=grants-deployer PUBLISHING=true yarn deploy
- if: ${{ failure() }}
uses: fadenb/[email protected]
with:
homeserver: 'matrix.web3.foundation'
token: ${{ secrets.MATRIX_TOKEN }}
channel: ${{ secrets.MATRIX_CHANNEL_ID }}
message: |
WEBSITE BUILD FAILED: [This](https://github.com/w3f/Grants-Program/commit/${{ github.sha }}) is the last push commit.