diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a797c9425..09ea43ab3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -206,16 +206,3 @@ jobs: ref: ${{ env.SIGN_PIPE_VER }} token: ${{ secrets.SIGN_GITHUB_TOKEN }} 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 }' diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 000000000..77096790f --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -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 }}" }' \ No newline at end of file