diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e03c515..4d5823a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/xvfb-action@v1.0 with: @@ -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 @@ -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/xvfb-action@v1.0 with: @@ -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 @@ -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/xvfb-action@v1.0 with: @@ -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 diff --git a/build.gradle b/build.gradle index 9e73347..3c2f2e6 100644 --- a/build.gradle +++ b/build.gradle @@ -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