misc update

dev
sandeep 2021-09-10 19:48:21 +05:30
parent 3b7f7aaca2
commit eae6df9360
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,6 @@ name: ⏰ Publish Docs
on: on:
push: push:
branches: branches:
- master
- dev - dev
workflow_dispatch: workflow_dispatch:
@ -28,7 +27,7 @@ jobs:
run: | run: |
if ! which dstdocgen > /dev/null; then if ! which dstdocgen > /dev/null; then
echo -e "Command dstdocgen not found! Installing\c" echo -e "Command dstdocgen not found! Installing\c"
go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen go install github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen@main
fi fi
go generate pkg/templates/templates.go go generate pkg/templates/templates.go
go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go
@ -49,3 +48,4 @@ jobs:
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}