Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Fix release version number (#41)
Browse files Browse the repository at this point in the history
* Update release-build.yml

* Add test to find jar file

* Include task to get asset path and name

* Fix issue with variable not storing command output

* Updated to use environment variables for asset

* Fix usage of environment variables

* Updated echo commands to communicate with server

* Refactored set-env to one liner

* Fix workflow command for setting environment var

* Remove quotes from set-env

* Fixed usage of environment variable in asset upload
  • Loading branch information
kylejuliandev authored Sep 5, 2020
1 parent 81a2017 commit 486422b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true

- name: Find Asset Details
run: |
assetPath=$(find ${{ github.workspace }}/build/libs -name TWSManagement\*)
assetName=$(basename -a $assetPath)
echo ::set-env name=ASSET_PATH::$assetPath
echo ::set-env name=ASSET_NAME::$assetName
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/build/libs/TWSManagement-${GITHUB_REF/refs\/tags\//}.jar
asset_name: TWSManagement.jar
asset_path: ${{ env.ASSET_PATH }}
asset_name: ${{ env.ASSET_NAME }}
asset_content_type: application/java-archive

0 comments on commit 486422b

Please sign in to comment.