Skip to content

Commit 5cd32d3

Browse files
committed
Fix GitHub Pages workflow to use correct build output directory
1 parent c0f9d41 commit 5cd32d3

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/gh-pages.yml

+34-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,37 @@ on:
99

1010
jobs:
1111
build:
12-
uses: janosh/workflows/.github/workflows/deno-gh-pages.yml@main
13-
with:
14-
working-directory: site
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Deno
18+
uses: denoland/setup-deno@v1
19+
with:
20+
deno-version: v1.x
21+
22+
- name: Build site
23+
run: |
24+
cd site
25+
deno task build
26+
27+
- name: Upload Pages artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: site/build
31+
32+
deploy:
33+
needs: build
34+
if: github.ref == 'refs/heads/main'
35+
permissions:
36+
pages: write
37+
id-token: write
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

.pre-commit-config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repos:
2525
types: [file]
2626
files: \.(js|ts|svelte|json|jsonc)$
2727
language: system
28-
2928
- id: deno-lint
3029
name: Deno lint
3130
entry: deno lint

0 commit comments

Comments
 (0)