Skip to content

Photography Archive Update (#60) #28

Photography Archive Update (#60)

Photography Archive Update (#60) #28

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build 🔧
run: |
npm ci
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Pages Artefacts
id: upload
uses: actions/upload-pages-artifact@v3
with:
path: "./dist"
deploy:
# Requires Build Job to run first
needs: build
permissions:
pages: write
id-token: write
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4