Skip to content

Commit

Permalink
ci: add github pages deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Feb 6, 2025
1 parent 68bc467 commit 78d8989
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy

on:
workflow_trigger:
push:
branches:
- main

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno install
- run: deno run build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist/

# Deployment job
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

0 comments on commit 78d8989

Please sign in to comment.