Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Sep 9, 2024
1 parent 06c8434 commit 3a2b240
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build Status

on:
push:
paths-ignore:
- '.github/**'
branches:
- '*'
pull_request:
Expand All @@ -12,9 +10,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: 17
Expand All @@ -23,9 +21,9 @@ jobs:
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
name: ${{ github.event.repository.name }}-Quilt-${{ github.sha }}
path: |
build/libs/*.jar
!build/libs/*-dev.jar
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: 17
Expand Down Expand Up @@ -40,15 +40,18 @@ jobs:
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }}
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }}
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }}
run: ./gradlew publish --no-daemon --max-workers 1
- name: Publish
uses: Kir-Antipov/[email protected]
run: ./gradlew publish
- name: Publish (Quilt)
id: publish_quilt
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659
with:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ github.token }}

version: ${{ github.ref_name }}+Quilt
version-type: beta
files: |
build/libs/!(*-@(dev|sources|javadoc|slim)).jar
build/libs/*-@(sources|javadoc).jar
- name: Notify Discord
uses: Up-Mods/action-discord-release@main
with:
Expand Down

0 comments on commit 3a2b240

Please sign in to comment.