Skip to content

Commit

Permalink
Fix action pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Sep 30, 2023
1 parent aa66428 commit 760a7ef
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
matrix:
minecraft: [ 1.17.1, 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20.1 ]
runs-on: ubuntu-latest
env:
SHA7: ${GITHUB_SHA::7}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -30,8 +28,16 @@ jobs:
run: ./gradlew setupLibrary -PbuildVersion="${{ matrix.minecraft }}"
- name: Build ${{ matrix.minecraft }}
run: ./gradlew build -PbuildVersion="${{ matrix.minecraft }}"
- name: Capture release artifacts
- name: Get commit SHA
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Capture release artifacts individually
uses: actions/upload-artifact@v3
with:
name: MTR-NTE-${{ SHA7 }}+${{ matrix.minecraft }}
name: MTR-NTE-${{ steps.vars.outputs.sha_short }}+${{ matrix.minecraft }}
path: build/*.jar
- name: Capture release artifacts collectively
uses: actions/upload-artifact@v3
with:
name: MTR-NTE-${{ steps.vars.outputs.sha_short }}
path: build/*.jar

0 comments on commit 760a7ef

Please sign in to comment.