Skip to content

Commit

Permalink
Updated the deployment script to avoid the deprecated set-output co…
Browse files Browse the repository at this point in the history
…mmand in GitHub Actions
  • Loading branch information
Zhuravl committed Dec 27, 2024
1 parent ace7f03 commit 7095f5a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-jpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ jobs:
--linux-deb-maintainer 'Illia Zhuravskyi <zhuravskyi.illia@gmail.com>' \
--linux-menu-group Yatran
mv target/yatran_${{ github.event.release.tag_name }}-${{ github.event.release.tag_name }}_amd64.deb target/Yatran-${{ github.event.release.tag_name }}-Debian_amd64.deb
echo "LINUX_INSTALLER_PATH=target/Yatran-${{ github.event.release.tag_name }}-Debian_amd64.deb" >> $GITHUB_ENV
- name: Upload Linux installer
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url.replace("{?name,label}", "") }}
asset_path: target/Yatran-${{ github.event.release.tag_name }}-Debian_amd64.deb
asset_path: ${{ env.LINUX_INSTALLER_PATH }}
asset_name: Yatran-${{ github.event.release.tag_name }}-Debian_amd64.deb
asset_content_type: application/x-binary

Expand Down Expand Up @@ -74,12 +75,13 @@ jobs:
--type msi --win-dir-chooser --win-menu --win-per-user-install --win-shortcut \
--win-menu-group Yatran
mv target/Yatran-${{ github.event.release.tag_name }}.msi target/Yatran-${{ github.event.release.tag_name }}-Windows.msi
echo "WINDOWS_INSTALLER_PATH=target/Yatran-${{ github.event.release.tag_name }}-Windows.msi" >> $GITHUB_ENV
- name: Upload Windows installer
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url.replace("{?name,label}", "") }}
asset_path: target/Yatran-${{ github.event.release.tag_name }}-Windows.msi
asset_path: ${{ env.WINDOWS_INSTALLER_PATH }}
asset_name: Yatran-${{ github.event.release.tag_name }}-Windows.msi
asset_content_type: application/x-binary

Expand Down Expand Up @@ -111,11 +113,12 @@ jobs:
--main-class ua.com.yatran.Yatran \
--type pkg
mv target/Yatran-${{ github.event.release.tag_name }}.pkg target/Yatran-${{ github.event.release.tag_name }}-macOS.pkg
echo "MACOS_INSTALLER_PATH=target/Yatran-${{ github.event.release.tag_name }}-macOS.pkg" >> $GITHUB_ENV
- name: Upload MacOS installer
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url.replace("{?name,label}", "") }}
asset_path: target/Yatran-${{ github.event.release.tag_name }}-macOS.pkg
asset_path: ${{ env.MACOS_INSTALLER_PATH }}
asset_name: Yatran-${{ github.event.release.tag_name }}-macOS.pkg
asset_content_type: application/x-binary

0 comments on commit 7095f5a

Please sign in to comment.