Skip to content

Commit

Permalink
chore(mkdocs): allow workflow_dispatch (#989)
Browse files Browse the repository at this point in the history
* Updated docs for go libraries.

* Add option to manually trigger doc publish
  • Loading branch information
rahul2393 authored May 12, 2021
1 parent e26e39a commit 083c157
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/mkdocs-latest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Deploy the latest documentation
on:
workflow_dispatch:
inputs:
version:
description: Version to be deployed
required: true
push:
tags:
- "v*"
Expand Down Expand Up @@ -27,7 +32,11 @@ jobs:
run: |
git config user.name "knqyf263"
git config user.email "knqyf263@gmail.com"
- 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
1 change: 1 addition & 0 deletions docs/vuln-detection/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 083c157

Please sign in to comment.