Update data/*.json stats #1329
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 and Deploy | |
on: | |
push: | |
branches: | |
- theData | |
workflow_dispatch: | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
with: | |
ref: theData | |
path: src | |
- name: Checkout current | |
uses: actions/[email protected] | |
with: | |
ref: main | |
path: live | |
- name: Setup NodeJS | |
uses: actions/[email protected] | |
with: | |
node-version: '14' | |
- name: Install npm and deps | |
run: | | |
npm install -g npm@7 | |
cd src | |
npm install --no-audit | |
- name: Build site | |
run: | | |
cd src | |
npm run build | |
- name: Prepare deployment | |
run: | | |
rm -rf live/* | |
cp -r src/public/* live | |
- name: Commit & deploy | |
uses: EndBug/[email protected] | |
with: | |
cwd: "live" | |
branch: main | |
message: "deploy: ${{ github.sha }}" | |
default_author: github_actions |