Skip to content

Commit a97c533

Browse files
committed
Deploy dg site
1 parent f1fc586 commit a97c533

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 25
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- uses: taiki-e/install-action@v2
30+
with:
31+
tool: mise
32+
33+
- name: Install mise tools
34+
run: |
35+
mise settings add idiomatic_version_file_enable_tools "[]"
36+
mise settings experimental=true
37+
mise install
38+
env:
39+
GITHUB_TOKEN: ${{ github.token }}
40+
41+
- name: Build site
42+
run: dg site
43+
44+
- uses: actions/configure-pages@v5
45+
46+
- uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: .dg/site
49+
50+
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)