-
Notifications
You must be signed in to change notification settings - Fork 70
32 lines (30 loc) · 991 Bytes
/
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
name: Publish website
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
if: github.repository_owner == 'w3f'
name: build and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: browser-actions/setup-chrome@v1
- uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Initialize submodules
run: |
git submodule update --init --recursive
git submodule update --remote
- name: Build PDF
run: |
cd website && npm i && npm run build_pdf && cd ..
- 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
cd website && npm run build && GIT_USER=grants-deployer PUBLISHING=true npm run deploy