mirror of
https://github.com/starshardstudio/peafowl.git
synced 2024-11-21 20:44:19 +00:00
Add GitHub Pages auto-deploy
This commit is contained in:
parent
480827d0d9
commit
a3b49acbc9
1 changed files with 50 additions and 0 deletions
50
.github/workflows/gh-pages.yml
vendored
Normal file
50
.github/workflows/gh-pages.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
name: "Build and deploy to GitHub Pages"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: "Build website"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout repository"
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: "Setup Deno"
|
||||||
|
uses: denoland/setup-deno@v2
|
||||||
|
|
||||||
|
- name: "Build website"
|
||||||
|
run: >-
|
||||||
|
deno task build
|
||||||
|
|
||||||
|
- name: "Upload pages artifact"
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: "Deploy website"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Deploy to GitHub Pages"
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
id: deployment
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: "GitHub Pages"
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
Loading…
Reference in a new issue