Skip to content

Commit 3259945

Browse files
committed
Deploy dg site
1 parent f1fc586 commit 3259945

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/pages.yml

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

0 commit comments

Comments
 (0)