From a97c53349d939e07d6da6b8d36c352cb57273c55 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 30 Apr 2026 12:50:11 +0800 Subject: [PATCH] Deploy dg site --- .github/workflows/pages.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..6803f03 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,50 @@ +name: pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 25 + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: taiki-e/install-action@v2 + with: + tool: mise + + - name: Install mise tools + run: | + mise settings add idiomatic_version_file_enable_tools "[]" + mise settings experimental=true + mise install + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Build site + run: dg site + + - uses: actions/configure-pages@v5 + + - uses: actions/upload-pages-artifact@v3 + with: + path: .dg/site + + - uses: actions/deploy-pages@v4