Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Dec 10, 2023
1 parent 36315b8 commit 1cbfd90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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,20 +17,20 @@ jobs:
- id: vars
run: |
echo "VERSION=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
- run: chmod +x gradlew
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- run: ./gradlew build
env:
MOD_VERSION: ${{ steps.vars.outputs.VERSION }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build ${{ steps.vars.outputs.VERSION }}
path: "./**/build/libs/**.jar"
10 changes: 5 additions & 5 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
- id: vars
run: |
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
- run: chmod +x gradlew
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
Expand All @@ -24,11 +24,11 @@ jobs:
MOD_VERSION: ${{ steps.vars.outputs.VERSION }}
CURSEFORGE_API: ${{ secrets.CURSEFORGE_API }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build ${{ steps.vars.outputs.VERSION }}
path: "./**/build/libs/**.jar"
- uses: alexellis/upload-assets@0.2.2
- uses: alexellis/upload-assets@259de5111cb56966d046ced998941e93f91d2c93
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down

0 comments on commit 1cbfd90

Please sign in to comment.