Skip to content

Commit

Permalink
Set up docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeeeT committed Jun 10, 2024
1 parent 1221c14 commit 43cfc0a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
push:
branches:
- quartz

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci
- run: npx quartz build
- uses: actions/upload-pages-artifact@v2
with:
path: public

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 43cfc0a

Please sign in to comment.