Create deploy.yml

This commit is contained in:
kimjiil 2025-12-04 17:21:34 +09:00 committed by GitHub
parent 4e21564a9c
commit f419026301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

45
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Deploy Quartz site to GitHub Pages
on:
push:
branches: ["main"]
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2