Update website #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |