Skip to content

Commit

Permalink
don't upload src, dev
Browse files Browse the repository at this point in the history
  • Loading branch information
plusls committed Sep 5, 2021
1 parent be4295a commit 68dac2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ jobs:
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Find correct JAR
id: findjar
run: |
output="$(find build/libs/ ! -name "*-dev.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
echo "::set-output name=jarname::$output"
- name: Upload assets to GitHub
uses: AButler/[email protected]
if: ${{ runner.os == 'Linux' && matrix.java == '16' }}
with:
files: 'build/libs/*;LICENSE'
files: build/libs/${{ steps.findjar.outputs.jarname }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 68dac2e

Please sign in to comment.