0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-06 06:09:07 +01:00
gitea/.github/workflows/push-publish_docs.yml
2023-05-01 00:31:50 -04:00

31 lines
710 B
YAML

name: Publish documentation
on:
push:
paths:
- "docs/**"
branches:
- 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 }}