2023-05-04 04:04:02 +02:00
|
|
|
name: "Docs: Publish"
|
2023-04-30 18:23:26 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "docs/**"
|
2023-05-01 06:31:50 +02:00
|
|
|
branches:
|
|
|
|
- main
|
2023-04-30 18:23:26 +02:00
|
|
|
|
|
|
|
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/
|
|
|
|
env:
|
2023-05-01 20:31:11 +02:00
|
|
|
NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
|
2023-04-30 18:23:26 +02:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|