Skip to content

Commit

Permalink
Switched to supporting glob patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomiti committed Mar 3, 2022
1 parent ae5834d commit 22b993d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,32 @@ jobs:
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: build
- name: Rename tar to Generic for upload
run: mv build/distributions/*.tar build/distributions/countmein.tar
continue-on-error: true
- name: Glob match tar
uses: tj-actions/glob@v7
id: tar
with:
files: build/distributions/*.tar
- name: Upload tar to Release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/distributions/*.tar
asset_path: ${{ steps.tar.outputs.paths }}
asset_name: countmein-${{ github.event.release.tag_name }}.tar
asset_content_type: application/x-tar
continue-on-error: true
- name: Glob match zip
uses: tj-actions/glob@v7
id: zip
with:
files: build/distributions/*.zip
- name: Upload zip to Release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/distributions/*.zip
asset_path: ${{ steps.zip.outputs.paths }}
asset_name: countmein-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip

0 comments on commit 22b993d

Please sign in to comment.