diff options
| author | Nicolas Paul <n@nc0.fr> | 2023-04-26 21:08:28 +0200 |
|---|---|---|
| committer | Nicolas Paul <n@nc0.fr> | 2023-04-26 21:08:28 +0200 |
| commit | e41107499d44001bbe949693db9202ec2ce74a6a (patch) | |
| tree | 8d036e796746a4ad4cb865e11c128113616856a2 | |
| parent | 173193c277077c1e039afa2c17cfd28d0724209f (diff) | |
Add CI for documentation site
| -rw-r--r-- | .github/workflows/ci.yml | 14 |
1 files 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 }} |
