start working on scopes listed on home page #1
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: Build Web Client | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'web/**' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14' | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./web | |
- name: Build | |
run: npm run build | |
working-directory: ./web | |
- name: Deploy to Built Branch | |
run: | | |
git config --global user.name 'Ian Johnson' | |
git config --global user.email '[email protected]' | |
git checkout -b built | |
git rm -r --cached . | |
git add -f web/dist | |
git commit -m "Deploying build" | |
git push origin built --force |