Skip to content

Commit

Permalink
update GH workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Apr 8, 2024
1 parent 350b35e commit 951d76c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,21 @@ jobs:
with:
name: ${{ github.event.repository.name }}-Common-${{ github.sha }}
path: |
Common/build/libs/!(*-@(dev|slim)).jar
Common/build/libs/*.jar
!Common/build/libs/*-dev.jar
- name: Upload build artifacts (NeoForge)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-NeoForge-${{ github.sha }}
path: |
NeoForge/build/libs/!(*-@(dev|slim)).jar
NeoForge/build/libs/*.jar
!NeoForge/build/libs/*-dev.jar
- name: Upload build artifacts (Quilt)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-Quilt-${{ github.sha }}
path: |
Quilt/build/libs/!(*-@(dev|slim)).jar
Quilt/build/libs/*.jar
!Quilt/build/libs/*-dev.jar
27 changes: 1 addition & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,45 +34,21 @@ jobs:
run: ./gradlew assemble
- name: Maven Release
if: steps.extract_maven_upload_url.outputs.maven_upload_url
continue-on-error: true
run: ./gradlew publish
env:
BUILD_TIME: ${{ steps.current-time.outputs.formattedTime }}
BUILD_NUMBER: ${{ github.run_number }}
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }}
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }}
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }}
- name: Upload build artifacts (Common)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-Common-${{ github.sha }}
path: |
Common/build/libs/!(*-@(dev|slim)).jar
- name: Upload build artifacts (NeoForge)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-NeoForge-${{ github.sha }}
path: |
NeoForge/build/libs/!(*-@(dev|slim)).jar
- name: Upload build artifacts (Quilt)
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-Quilt-${{ github.sha }}
path: |
Quilt/build/libs/!(*-@(dev|slim)).jar
run: ./gradlew publish
- name: Publish (GitHub Releases)
continue-on-error: true
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3
with:
github-token: ${{ github.token }}
files: |
**/build/libs/!(*-@(dev|sources|javadoc|slim)).jar
**/build/libs/*-@(sources|javadoc).jar
- name: Publish (NeoForge)
continue-on-error: true
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3
with:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
Expand All @@ -82,7 +58,6 @@ jobs:
NeoForge/build/libs/!(*-@(dev|sources|javadoc|slim)).jar
NeoForge/build/libs/*-@(sources|javadoc).jar
- name: Publish (Quilt)
continue-on-error: true
uses: Kir-Antipov/mc-publish@423b200ec84e6eefad726549c72513d7a9b4c2c0 # (new) v3.3
with:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
Expand Down

0 comments on commit 951d76c

Please sign in to comment.