Skip to content

update branch

update branch #81

Workflow file for this run

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