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 f024b79
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/actions.yaml

This file was deleted.

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 f024b79

Please sign in to comment.