Skip to content

save work

save work #11

name: Build and Deploy
on:
push:
branches:
- main
env:
# https://cfpb.github.io/dsr-test/
BASE_PATH: /dsr-test/
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version-file: .nvmrc
- name: Install and Build
run: |
corepack enable
yarn install --immutable
yarn build
- name: Disable Jekyll
run: touch dist/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4
with:
folder: dist
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
# Keep PR preview folders when republishing main
clean-exclude: |
pr-previews