Merge pull request #18 from conjure-cp/dependabot/npm_and_yarn/all-np… #17
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: Deploy to the gh-pages branch | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: npm | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
# creates a .nojekyll file in the out directory to tell GitHub Pages not to treat the site as a Jekyll project. | |
touch dist/.nojekyll | |
- name: Deploy to the gh-pages branch | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist | |
clean: true |