Skip to content

Commit 4765e5d

Browse files
committed
ci: add github pages deploy.
1 parent 68bc467 commit 4765e5d

File tree

2 files changed

+39
-41
lines changed

2 files changed

+39
-41
lines changed

.github/workflows/actions.yaml

-41
This file was deleted.

.github/workflows/deploy.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
# Build job
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: denoland/setup-deno@v2
16+
with:
17+
deno-version: v2.x
18+
- run: deno install
19+
- run: deno run build
20+
- name: Upload static files as artifact
21+
id: deployment
22+
uses: actions/upload-pages-artifact@v3
23+
with:
24+
path: dist/
25+
26+
# Deployment job
27+
deploy:
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
permissions:
32+
pages: write
33+
id-token: write
34+
runs-on: ubuntu-latest
35+
needs: build
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)