Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docs generation runs outside of build matrix now #165

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
jpmcb marked this conversation as resolved.
Show resolved Hide resolved
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: ${{ github.token }}
nickytonline marked this conversation as resolved.
Show resolved Hide resolved

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
Loading