summaryrefslogtreecommitdiffstats
path: root/.github/workflows/publish-docs.yml
blob: de5572a640069f25fa599c959ea7f578adae0d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: publish-docs

on:
  push:
    paths:
      - "docs/**"
    branches:
      - main

jobs:
  compliance-docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v4
        with:
          go-version: ">=1.20.1"
      - name: build docs
        run: |
          cd docs
          make trans-copy clean build
      - name: publish to netlify
        uses: nwtgck/actions-netlify@v2.0
        with:
          production-branch: main
          publish-dir: docs/public/
        env:
          NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}