mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
663 B
30 lines
663 B
2 years ago
|
name: publish-docs
|
||
2 years ago
|
|
||
|
on:
|
||
|
push:
|
||
|
paths:
|
||
|
- "docs/**"
|
||
2 years ago
|
branches:
|
||
|
- main
|
||
2 years ago
|
|
||
|
jobs:
|
||
|
compliance-docs:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
2 years ago
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-go@v4
|
||
2 years ago
|
with:
|
||
2 years ago
|
go-version: ">=1.20.1"
|
||
2 years ago
|
- 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:
|
||
2 years ago
|
NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
|
||
2 years ago
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|