1
0
mirror of https://github.com/netbirdio/netbird.git synced 2025-07-13 21:10:47 +02:00

Decouple docs generation ()

* decouple docs update

* removed workflow run on push to main
This commit is contained in:
pascal-fischer
2023-06-12 15:37:08 +02:00
committed by GitHub
parent 481465e1ae
commit ff267768f0
2 changed files with 22 additions and 13 deletions

@ -206,16 +206,3 @@ jobs:
ref: ${{ env.SIGN_PIPE_VER }} ref: ${{ env.SIGN_PIPE_VER }}
token: ${{ secrets.SIGN_GITHUB_TOKEN }} token: ${{ secrets.SIGN_GITHUB_TOKEN }}
inputs: '{ "tag": "${{ github.ref }}" }' inputs: '{ "tag": "${{ github.ref }}" }'
trigger_docs_build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Trigger API pages generation and docs build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: docs site build and push
repo: netbirdio/docs
ref: "refs/heads/main"
token: ${{ secrets.SIGN_GITHUB_TOKEN }}
inputs: '{ "generateAPI": true }'

22
.github/workflows/update-docs.yml vendored Normal file

@ -0,0 +1,22 @@
name: update docs
on:
push:
tags:
- 'v*'
paths:
- 'management/server/http/api/openapi.yml'
jobs:
trigger_docs_api_update:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Trigger API pages generation
uses: benc-uk/workflow-dispatch@v1
with:
workflow: generate api pages
repo: netbirdio/docs
ref: "refs/heads/main"
token: ${{ secrets.SIGN_GITHUB_TOKEN }}
inputs: '{ "tag": "${{ github.ref }}" }'