This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Bump org.junit.jupiter:junit-jupiter-engine from 5.10.1 to 5.10.2 (#625) #400
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy static content to Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build-javadoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Build JavaDoc using Dokka | |
run: | | |
mkdir ./javadoc | |
./gradlew :TeamCode:dokkaHtml --no-daemon | |
mv ./TeamCode/build/dokka/html ./javadoc | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./javadoc/html | |
name: javadoc | |
build-controldoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Build APK with Gradle | |
run: ./gradlew assembleDebug --scan --stacktrace --info --no-daemon -x test | |
- name: Build ControlDoc | |
run: | | |
chmod +x ./buildControlDoc.sh | |
./buildControlDoc.sh TeamCode/build/outputs/apk/debug/TeamCode-debug.apk | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: controldoc | |
path: doc-out/ | |
deploy: | |
needs: | |
- build-javadoc | |
- build-controldoc | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Only allow one concurrent deployment | |
concurrency: | |
group: pages-deploy | |
cancel-in-progress: false | |
steps: | |
- name: Get build artifact (javadoc) | |
uses: actions/download-artifact@v4 | |
with: | |
name: javadoc | |
path: javadoc | |
- name: Get build artifact (controldoc) | |
uses: actions/download-artifact@v4 | |
with: | |
name: controldoc | |
path: controldoc | |
- name: Move controldoc to javadoc | |
run: | | |
mv controldoc javadoc/controls | |
- name: Upload Pages build artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./javadoc | |
retention-days: 90 | |
- name: Configure Pages | |
uses: actions/configure-pages@v4 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |