-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.44 KB
/
staticalize.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
pull_request:
push:
branches:
- main
jobs:
staticalize:
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- run: |
deno task dev &
until curl --output /dev/null --silent --head --fail http://127.0.0.1:8000; do
printf '.'
sleep 1
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JSR_API: ${{ secrets.JSR_API }}
- name: Download Staticalize
run: |
wget https://github.com/thefrontside/staticalize/releases/download/v0.0.1/staticalize-linux.tar.gz \
-O /tmp/staticalize-linux.tar.gz
tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin
chmod +x /usr/local/bin/staticalize-linux
- name: Staticalize
run: |
staticalize-linux \
--site=http://127.0.0.1:8000 \
--output=built \
--base=https://effection-www.deno.dev/
- run: npx pagefind --site built
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: effection-www
entrypoint: "https://jsr.io/@std/http/1.0.12/file_server.ts"
root: built