From e41107499d44001bbe949693db9202ec2ce74a6a Mon Sep 17 00:00:00 2001 From: Nicolas Paul Date: Wed, 26 Apr 2023 21:08:28 +0200 Subject: Add CI for documentation site --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc914ce..af8e6dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,8 @@ name: Continuous Integration on: push: jobs: - go: - name: Golang CI + ci: + name: CI runs-on: ${{ matrix.os }} timeout-minutes: 5 strategy: @@ -35,3 +35,13 @@ jobs: run: ./tools/check_goimports.sh - name: Check license headers run: ./tools/check_addlicense.sh + - name: Build documentation + run: ./doc/build.sh + - name: Deploy site + uses: cloudflare/pages-action@1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: crocc + directory: doc/dst + gitHubToken: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3