Skip to content

Update actions in deployment workflow #65

Update actions in deployment workflow

Update actions in deployment workflow #65

Workflow file for this run

name: Gatsby Build & Deploy
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build with Gatsby
run: npm run build
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
personal_token: ${{ secrets.MERGIST_DEPLOY_PAT }}
publish_dir: ./public
cname: mergist.johng.io