StuyLib v2024.1.3 #320
Workflow file for this run
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: Prepare Release | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
env: | |
JAVA_VERSION: 1.17 | |
GRADLE_VERSION: 8.4 | |
jobs: | |
pages: | |
name: Deploy Javadocs | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build Javadocs - Gradle ${{ env.GRADLE_VERSION }} | |
uses: gradle/[email protected] | |
with: | |
arguments: javadoc -Pversion=${{ github.event.release.tag_name }} | |
- name: Setup Pages | |
uses: actions/[email protected] | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: './docs/' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] | |
deploy: | |
name: Prepare Jar & JitPack | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build - Gradle ${{ env.GRADLE_VERSION }} | |
uses: gradle/[email protected] | |
with: | |
arguments: build -Pversion=${{ github.event.release.tag_name }} | |
- name: Upload Assets to Release | |
uses: AButler/[email protected] | |
with: | |
files: ./build/libs/*.jar | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update JitPack | |
uses: badasintended/autojitpack@v1 | |
with: | |
version: ${{ github.event.release.tag_name }} |