summaryrefslogtreecommitdiffstats
path: root/.github/workflows/push-publish_docs.yml
blob: 6658830db0db60319322a111d802b467079929ce (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
30
31
name: Publish documentation

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

jobs:
  compliance-docs:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v3
      - name: setup go
        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/
          site-id: d2260bae-7861-4c02-8646-8f6440b12672
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}