Skip to content

Merge branch 'main' of https://github.com/scottnath/scottnath.com #17

Merge branch 'main' of https://github.com/scottnath/scottnath.com

Merge branch 'main' of https://github.com/scottnath/scottnath.com #17

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
env:
AIRTABLE_API_KEY: ${{secrets.AIRTABLE_API_KEY}}
AIRTABLE_BASE_ID: ${{secrets.AIRTABLE_BASE_ID}}
- run: npm run site-files
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./workspaces/website/dist
publish_branch: main
external_repository: scottnath/scottnath.github.io