Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
ci: Use null2264/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Apr 24, 2024
1 parent 28dfd7a commit 0dcec31
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ jobs:
with:
java: 21

- name: Build LibreExpFix
run: ./gradlew build
- name: Get mod versions
id: get-mod-versions
run: |
echo "versions=$(ls versions | grep -e '.\.' | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Build with Gradle
uses: null2264/actions/replaymod-preprocessor-compile@6712f98d592b126629afd27dc4870c93b53426b4
with:
versions: ${{ steps.get-mod-versions.outputs.versions }}

- name: Archive build results
run: tar -I zstd -cf build.tar.zst versions/*/build/libs

- name: Upload build folder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build.tar.zst
if-no-files-found: error
retention-days: 3
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,28 @@ jobs:
uses: null2264/actions/gradle-setup@6712f98d592b126629afd27dc4870c93b53426b4
with:
java: 21
- name: Build
run: ./gradlew build --stacktrace

- name: Get mod versions
id: get-mod-versions
run: |
echo "versions=$(ls versions | grep -e '.\.' | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Build with Gradle
uses: null2264/actions/replaymod-preprocessor-compile@6712f98d592b126629afd27dc4870c93b53426b4
with:
versions: ${{ steps.get-mod-versions.outputs.versions }}

- name: Archive build results
run: tar -I zstd -cf build.tar.zst versions/*/build/libs

- name: Upload build folder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build.tar.zst
if-no-files-found: error
retention-days: 3

- name: Upload mod to CurseForge and Modrinth
run: ./gradlew publishMods --stacktrace
env:
Expand Down

0 comments on commit 0dcec31

Please sign in to comment.