Skip to content

Commit

Permalink
Update java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Jul 30, 2024
1 parent 85e8347 commit 1f94b93
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 155 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fabric-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
# Use these Java versions
java: [17] # Latest version
java: [23] # Latest version
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/fabric-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 23

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Upload GitHub release
uses: AButler/[email protected]
with:
files: 'fabric/build/libs/*.jar'
files: "fabric/build/libs/*.jar"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish with Gradle
Expand All @@ -46,4 +46,3 @@ jobs:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}

46 changes: 0 additions & 46 deletions .github/workflows/forge-build.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/forge-release.yml

This file was deleted.

35 changes: 17 additions & 18 deletions .github/workflows/javadoc-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,23 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew javadoc
- name: GitHub Pages Javadoc
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: build/docs
destination_dir: dokka/latest-snapshot
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 23
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew javadoc
- name: GitHub Pages Javadoc
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: build/docs
destination_dir: dokka/latest-snapshot
35 changes: 17 additions & 18 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,23 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew javadoc
- name: GitHub Pages Javadoc
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: build/docs
destination_dir: dokka/v${{ github.event.release.tag_name }}
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 23
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew javadoc
- name: GitHub Pages Javadoc
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: build/docs
destination_dir: dokka/v${{ github.event.release.tag_name }}
46 changes: 22 additions & 24 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

- name: Publish to GitHub Packages
run: ./gradlew publish --stacktrace
env:
BRANCH_NAME: ${{ github.ref }}
RUN_COUNT: ${{ github.run_number }}
REPO_NAME: ${{ github.repository }}
USERNAME: ${{ github.ACTOR }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}

- name: Delete Package Versions
uses: actions/[email protected]
with:
num-old-versions-to-delete: 1
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 23
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

- name: Publish to GitHub Packages
run: ./gradlew publish --stacktrace
env:
BRANCH_NAME: ${{ github.ref }}
RUN_COUNT: ${{ github.run_number }}
REPO_NAME: ${{ github.repository }}
USERNAME: ${{ github.ACTOR }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}

- name: Delete Package Versions
uses: actions/[email protected]
with:
num-old-versions-to-delete: 1

0 comments on commit 1f94b93

Please sign in to comment.