Skip to content

Commit

Permalink
fixing docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Aug 13, 2024
1 parent b501d07 commit b899fa0
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,48 @@ on:
push:
branches: ["main"]

permissions:
contents: read
pages: write
id-token: write
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
generate_docs:
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
java-version: "17"
java-version: "22"
distribution: "temurin"
cache: "sbt"
- name: Build site
run: sbt doc
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload site
uses: actions/[email protected]
with:
path: ./target/scala-3.3.3/api

deploy:
publish_docs:
needs: generate_docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit b899fa0

Please sign in to comment.