Skip to content

Merge pull request #6 from ethanl21/dependabot/npm_and_yarn/follow-re… #19

Merge pull request #6 from ethanl21/dependabot/npm_and_yarn/follow-re…

Merge pull request #6 from ethanl21/dependabot/npm_and_yarn/follow-re… #19

name: Build and Deploy
on:
push:
# We only run this GitHub action upon new commits to `main`
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x.x
- name: Install
run: pnpm install
- name: Build CovidMap
run: pnpm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
# Remove previous build files
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll
permissions:
contents: write