mirror of
https://github.com/soconnor0919/october.today.git
synced 2026-02-04 15:56:36 -05:00
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
# Deploy to GitHub Pages
|
|
|
|
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ["main", "master"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
with:
|
|
static_site_generator: next
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build with Next.js
|
|
run: bun run build
|
|
env:
|
|
SKIP_ENV_VALIDATION: true
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: ./out
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|