Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 7 additions & 0 deletions .github/index.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ amends "@pkl.impl.ghactions/PklCI.pkl"

import "@gha/actions/Common.pkl"
import "@gha/actions/Setup.pkl"
import "@gha/Context.pkl"
import "@gha/Workflow.pkl"

build = baseWorkflow
Expand Down Expand Up @@ -64,6 +65,9 @@ local testJob: Workflow.Job = new {
local publishJob: Workflow.Job = new {
name = "Generate and publish docs"
`runs-on` = "ubuntu-latest"
permissions {
contents = "write"
}
steps {
new Common.Checkout {
with {
Expand All @@ -79,6 +83,9 @@ local publishJob: Workflow.Job = new {
}
}
new {
env {
["GH_TOKEN"] = Context.github.token
}
Comment thread
stackoverflow marked this conversation as resolved.
name = "Generate and publish docs"
run = "./gradlew check generateAndPublishDocs --refresh-dependencies"
}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ permissions:
jobs:
build-and-publish-docs:
name: Generate and publish docs
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand All @@ -28,6 +30,8 @@ jobs:
distribution: temurin
cache: gradle
- name: Generate and publish docs
env:
GH_TOKEN: ${{ github.token }}
run: ./gradlew check generateAndPublishDocs --refresh-dependencies
trigger-downstream-builds:
if: github.repository_owner == 'apple'
Expand Down