mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-11 20:54:05 +08:00
6c8b680f91
- Remove actions name where command is descriptive enough - Use kebab-case instead of snake-case for step names - Use shorter job names because to make PR checks more readable - Remove duplicate `checks-backend` --------- Co-authored-by: Yarden Shoham <git@yardenshoham.com>
30 lines
663 B
YAML
30 lines
663 B
YAML
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 }}
|