Skip to content

Commit

Permalink
Fix capturing build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Oct 17, 2023
1 parent 1fc7642 commit f8da662
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
matrix:
# Use these Java versions
java: [
17 # Latest version
17
]
# and run on both Linux and Windows
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,7 +31,7 @@ jobs:
- name: build
run: ./gradlew build
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '11' }} # Only upload artifacts built from LTS java on one OS
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v2
with:
name: Artifacts
Expand Down

0 comments on commit f8da662

Please sign in to comment.