Skip to content

2.14.0

2.14.0 #21

Workflow file for this run

name: Publish docs
on:
workflow_dispatch:
release:
types: [published]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '19'
- uses: gradle/gradle-build-action@v2
with:
arguments: :api:dokkaHtml
- name: Archive
shell: bash
run: |
tar \
--dereference --hard-dereference \
--directory api/build/dokka/html/ \
-cvf ${{ runner.temp }}/artifact.tar \
.
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
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@v2