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 58456cb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: GitHub Actions

on:
pull_request:
branches:
- main
push:
branches:
- main
# pull_request:
# branches:
# - main
# push:
# branches:
# - main

jobs:
build:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 58456cb

Please sign in to comment.