Merge pull request #173 from w3f/dependabot/npm_and_yarn/express-4.21.2 #53
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: | |
- 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: "18.x" | |
- 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 | |
npm i && npm run build && GIT_USER=grants-deployer PUBLISHING=true npm run deploy |