Skip to content

Merge branch 'develop' into docs #7

Merge branch 'develop' into docs

Merge branch 'develop' into docs #7

Workflow file for this run

name: Deploy API docs
on:
push:
branches:
- main
- docs
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: 'gradle'
- name: Change wrapper permission
run: chmod +x ./gradlew
- name: Build Java docs
run: ./gradlew :designsystem:dokkaHtml -PremoveSnapshotSuffix
- name: Organize pages structure
run: |
mkdir _site && mkdir _site/api
cp -r designsystem/build/dokka/html/* _site/api
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
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@v4