Browse Source

Making docs action only run on merge to main.
Update release action to publish a docs version

Signed-off-by: Gustavo Fernandes de Carvalho <gustavo.carvalho@container-solutions.com>

Gustavo Fernandes de Carvalho 4 years ago
parent
commit
b7ecdf6f58
2 changed files with 5 additions and 1 deletions
  1. 0 1
      .github/workflows/docs.yml
  2. 5 0
      .github/workflows/release.yml

+ 0 - 1
.github/workflows/docs.yml

@@ -4,7 +4,6 @@ on:
   push:
     branches:
       - main
-      - feature/docs-versioning
 env:
   # Common versions
   GO_VERSION: '1.17'

+ 5 - 0
.github/workflows/release.yml

@@ -54,6 +54,11 @@ jobs:
         env:
           GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
 
+      - name: Update Docs
+        run: make docs.publish DOCS_VERSION=${{ github.event.inputs.version }} DOCS_ALIAS=latest
+        env:
+          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+
   promote:
     name: Promote Container Image
     runs-on: ubuntu-latest