From 5dac9eef74dc75fcfab75350a293c087d92de4f1 Mon Sep 17 00:00:00 2001 From: Matthew W Date: Sun, 27 Oct 2024 16:49:21 +1100 Subject: [PATCH] ci: docs deployment test --- .github/workflows/docs.yaml | 24 ++++++++++++++++++++++++ docs/package.json | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..396a782 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,24 @@ +name: Deploy docs to GitHub Pages +on: + push: + branches: [docs-site] +permissions: + contents: read + pages: write + id-token: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: withastro/action@v3 + with: + path: ./docs + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/deploy-pages@v4 diff --git a/docs/package.json b/docs/package.json index fb86a6e..957d279 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,5 +15,6 @@ "astro": "^4.16.7", "sharp": "^0.32.6", "typescript": "^5.6.3" - } + }, + "packageManager": "pnpm@9.12.2" }