Skip to content

content: update readme #53

content: update readme

content: update readme #53

Workflow file for this run

name: Build and Deploy Gatsby Site
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
persist-credentials: true
fetch-depth: 0
- name: Cache NPM Dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Cache Gatsby files
uses: actions/cache@v3
with:
path: |
.cache
public
key: ${{ runner.os }}-gatsby-${{ github.sha }}
restore-keys: |
${{ runner.os }}-gatsby-
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --force
- name: Build
run: npm run build
- name: Deploy
uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: deploy