Skip to content

Merge pull request #44 from MWDelaney/next #3

Merge pull request #44 from MWDelaney/next

Merge pull request #44 from MWDelaney/next #3

name: 🚀 Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: 🏗️ Build Site
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- name: 🏗️ Build Site
uses: ./.github/actions/build
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: ⚙️ Setup Pages
uses: actions/configure-pages@v4
- name: 📥 Download build artifact
uses: actions/download-artifact@v4
with:
name: public
path: ./public
- name: 📤 Upload artifact for Pages
uses: actions/upload-pages-artifact@v3
with:
path: './public'
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4