Skip to content
Permalink
Browse files
chore(mkdocs): allow workflow_dispatch (#989)
* Updated docs for go libraries.

* Add option to manually trigger doc publish
  • Loading branch information
rahul2393 committed May 12, 2021
1 parent e26e39a commit 083c157b050d8a14c6d0d793194bd64619b3ba7e
Showing with 11 additions and 1 deletion.
  1. +10 −1 .github/workflows/mkdocs-latest.yaml
  2. +1 −0 docs/vuln-detection/library.md
@@ -1,5 +1,10 @@
name: Deploy the latest documentation
on:
workflow_dispatch:
inputs:
version:
description: Version to be deployed
required: true
push:
tags:
- "v*"
@@ -27,7 +32,11 @@ jobs:
run: |
git config user.name "knqyf263"
git config user.email "[email protected]"
- name: Deploy the latest documents
- name: Deploy the latest documents from new tag push
if: ${{ github.event.inputs.version == '' }}
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
mike deploy --push --update-aliases $VERSION latest
- name: Deploy the latest documents from manual trigger
if: ${{ github.event.inputs.version != '' }}
run: mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest
@@ -20,6 +20,7 @@
- JAR/WAR/EAR files (*.jar, *.war, and *.ear)
- Go
- Binaries built by Go (UPX-compressed binaries don't work)
- go.sum

The path of these files does not matter.

0 comments on commit 083c157

Please sign in to comment.