Skip to content

fix: Initial build pipeline #2

fix: Initial build pipeline

fix: Initial build pipeline #2

Workflow file for this run

# Build and deploy website
name: Deploy website
on:
# Runs on pushes targeting the default branch
push:
# branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Build website
run: npx gatsby build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public