diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..b598c5530 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +on: + push: + # branches: + # - main +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Deploy + steps: + - uses: actions/checkout@v4.1.1 + - uses: pnpm/action-setup@v2.4.0 + with: + version: 8.12.1 + - name: install dependencies + run: pnpm install --frozen-lockfile + - name: build + run: pnpm build + - name: publish docs + uses: cloudflare/pages-action@1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: gg-docs + directory: docs/starlight/dist # e.g. 'dist' + gitHubToken: ${{ secrets.GITHUB_TOKEN }}