Skip to content

Commit

Permalink
fix: docs generation runs outside of build matrix now (#165)
Browse files Browse the repository at this point in the history
* fix: docs generation runs outside of build matrix now

* chore: update GH_TOKEN

Co-authored-by: Brandon Roberts <[email protected]>

* keeping the name fields uniform by using double quotes

---------

Co-authored-by: Brandon Roberts <[email protected]>
  • Loading branch information
nickytonline and brandonroberts authored Sep 9, 2024
1 parent f924b09 commit 1e42988
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,46 @@ jobs:
NPM_PACKAGE_ROOT: "npm"
SKIP_DOCKER_PUBLISH: true

docs:
name: Update documentation
needs:
- release

runs-on: ubuntu-latest

steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: "☁️ checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: "🐹 Setup Go"
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- name: "🤲 Setup Just"
uses: extractions/setup-just@v2

- name: "📗 Generate Documentation"
run: ./scripts/generate-docs.sh
env:
GITHUB_REF: ${{ github.ref }}
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

build:
name: Build and publish artifacts
needs:
- release
- docs
if: needs.release.outputs.release-tag != ''
runs-on: ubuntu-latest
permissions:
Expand All @@ -85,11 +121,6 @@ jobs:
- name: "🤲 Setup Just"
uses: extractions/setup-just@v2

- name: "📗 Generate Documentation"
run: ./scripts/generate-docs.sh
env:
GITHUB_REF: ${{ github.ref }}

- name: "🔧 Build all and upload artifacts to release"
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 1e42988

Please sign in to comment.