Skip to content

Commit

Permalink
Merge pull request #6 from eimi-codes/5-fix-erroring-cicd
Browse files Browse the repository at this point in the history
ci: fix erroring CI
  • Loading branch information
GaeaKat authored Aug 17, 2024
2 parents 07d857d + 1388f9f commit 30da872
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
uses: gradle/actions/setup-gradle@v4
- name: Build
id: build
run: ./gradlew build
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ jobs:
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
uses: gradle/actions/setup-gradle@v4
- name: Build
id: build
run: ./gradlew build
- name: Prepare artifact metadata.
id: prepare_artifact_metadata
if: ${{ steps.changelog.outputs.skipped == 'false' }}
Expand All @@ -44,7 +45,7 @@ jobs:
echo ARTIFACT_NAME=bratacha-${{ steps.changelog.outputs.version }}.jar >> $GITHUB_OUTPUT
- name: Archive build results
# It is important to archive .gradle as well since gradle stores the incremental build state there
run: tar -I zstd -cf build.tar.zst build/libs build/repo
run: tar -I zstd -cf build.tar.zst build/libs
- name: Upload build and gradle folders
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 30da872

Please sign in to comment.