2023-05-12 10:21:28 +09:00
|
|
|
name: publish-docs
|
2023-05-01 01:23:26 +09:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "docs/**"
|
2023-05-01 13:31:50 +09:00
|
|
|
branches:
|
|
|
|
- main
|
2023-05-01 01:23:26 +09:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
compliance-docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-12 10:21:28 +09:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-go@v4
|
2023-05-01 01:23:26 +09:00
|
|
|
with:
|
2023-05-12 10:21:28 +09:00
|
|
|
go-version: ">=1.20.1"
|
2023-05-01 01:23:26 +09:00
|
|
|
- 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-02 03:31:11 +09:00
|
|
|
NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
|
2023-05-01 01:23:26 +09:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|