Merge pull request #16 from rnewstead1/dependabot/npm_and_yarn/json5-… #19
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-github-pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
container: node:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install rsync | |
run: | | |
apt-get update && apt-get install -y rsync | |
- name: Install code dependencies | |
run: | | |
npm install | |
- name: Compile Gatsby | |
run: | | |
npm run build | |
- name: Deploy to Github Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: public |