Skip to content

Commit

Permalink
Using an hugo shortcut to inject recommendation docs with each build #…
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Apr 25, 2024
1 parent 92e97b2 commit e2253a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 325 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: [main]
paths:
- 'docs/**'
- 'internal/scanners/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -32,12 +33,23 @@ jobs:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.119.0
GOVER: '1.21'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVER }}

- name: Create rules.txt file
run: |
echo "\\" > ./docs/static/rules.txt
go run ./cmd/main.go rules >> ./docs/static/rules.txt
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down
Loading

0 comments on commit e2253a5

Please sign in to comment.