Skip to content

improve the template project based on recent versions #1

improve the template project based on recent versions

improve the template project based on recent versions #1

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build
run: ./gradlew build
- name: Generate Docs
run: ./gradlew generateDocs
- name: Publish Docs
uses: actions/upload-pages-artifact@v1
with:
path: build/docs
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Spec
id: deployment
uses: actions/deploy-pages@v1