Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Apr 12, 2024
1 parent c519b66 commit 6513f3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_head.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- id: vars
run: |
echo "git_hash=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin
- run: chmod +x gradlew
- uses: actions/cache@v3
Expand All @@ -30,7 +30,7 @@ jobs:
- run: ./gradlew build
env:
GIT_HASH: ${{ steps.vars.outputs.git_hash }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: badpackets-${{ steps.vars.outputs.git_hash }}
path: "./platform/*/build/libs/**.jar"
19 changes: 9 additions & 10 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- id: vars
run: |
echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin
- run: chmod +x gradlew
- run: ./gradlew build publish curseforge modrinth
Expand All @@ -28,16 +28,15 @@ jobs:
- run: |
b2 sync --replaceNewer .b2 b2://maven-bai-lol
b2 clear-account
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: badpackets-${{ steps.vars.outputs.git_hash }}
path: "./platform/*/build/libs/**.jar"
- uses: alexellis/upload-assets@259de5111cb56966d046ced998941e93f91d2c93
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: |
[
"./platform/*/build/libs/*[0-9.].jar",
"./platform/*/build/libs/*[0-9.]-api.jar"
]
tag_name: ${{ steps.vars.outputs.version }}
files: |
./platform/*/build/libs/*[0-9.].jar
./platform/*/build/libs/*[0-9.]-api.jar

0 comments on commit 6513f3c

Please sign in to comment.