Skip to content

Commit

Permalink
Fix version extraction in gh-actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoathaydes committed Apr 8, 2020
1 parent bbdb6d7 commit 4413c79
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
java-version: '11'
java-package: 'jdk+fx'

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Package Java Image
uses: GabrielBB/[email protected]
with:
Expand All @@ -21,10 +26,11 @@ jobs:
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3).zip
asset_name: logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3)-linux.zip
asset_path: build/logfx-${{ VERSION }}.zip
asset_name: logfx-${{ VERSION }}-linux.zip
asset_content_type: application/zip
build-mac:
runs-on: macos-latest
Expand All @@ -36,6 +42,11 @@ jobs:
java-version: '11'
java-package: 'jdk+fx'

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Package Java Image
uses: GabrielBB/[email protected]
with:
Expand All @@ -44,10 +55,11 @@ jobs:
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3).zip
asset_name: logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3)-macos.zip
asset_path: build/logfx-${{ VERSION }}.zip
asset_name: logfx-${{ VERSION }}-mac.zip
asset_content_type: application/zip
build-win:
runs-on: windows-latest
Expand All @@ -59,6 +71,11 @@ jobs:
java-version: '11'
java-package: 'jdk+fx'

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Package Java Image
uses: GabrielBB/[email protected]
with:
Expand All @@ -67,8 +84,9 @@ jobs:
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3).zip
asset_name: logfx-$(echo "${GITHUB_REF}" | cut -d "/" -f3)-windows.zip
asset_path: build/logfx-${{ VERSION }}.zip
asset_name: logfx-${{ VERSION }}-windows.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group 'com.athaydes.logfx'
version '1.0-RC7'
version '1.0-RC8'
description 'A beautiful log viewer capable of handling large files'

sourceCompatibility = JavaVersion.VERSION_11
Expand Down

0 comments on commit 4413c79

Please sign in to comment.