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

Commit

Permalink
Merge pull request #22 from BEAN-Tastic/Sam/fix
Browse files Browse the repository at this point in the history
Adding Versioning to software
  • Loading branch information
CursoryWaif32BBD authored Mar 15, 2024
2 parents becd75c + a7d0975 commit 15221c2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,27 @@ jobs:
name: Package Application
run: mvn -B package --file pom.xml

- name: Extract version
id: extract_version
run: |
$version = "${{ needs.tag-version.outputs.nextTag }}"
$versionNumber = $version.Substring(1)
Write-Host "Extracted Version: $versionNumber"
echo "##[set-output name=version_number]$versionNumber"
# PACKAGE FOR DISTRIBUTION
- id: package
name: Package Installer
run: |
jpackage --verbose `
--about-url https://github.com/BEAN-Tastic/Bean-Tastic-CLI `
--input ./target `
--main-jar ${{ vars.name }}-${{ needs.tag-version.outputs.nextTag }}.jar `
--name ${{ vars.name }} `
--description "Welcome to the mysterious world of 'Bean-Tastic Adventure'! Prepare to embark on an epic journey through procedurally generated dungeons filled with danger, treasure, and plenty of Loot. In this rogue-like command-line interface (CLI) adventure, you'll step into the shoes of a brave bean warrior, tasked with unraveling the secrets of the Bean Kingdom and defeating multiple enemies. With each playthrough, face new challenges, encounter quirky bean-based creatures, and collect an arsenal of bean-themed weapons and abilities. Are you ready to delve into the depths of Bean-Tatstic and become the ultimate bean hero?" `
--dest build/distributions `
--vendor BeanTastic `
--app-version ${{ steps.extract_version.outputs.version_number }} `
--win-console `
--win-dir-chooser `
--win-menu `
Expand All @@ -104,9 +115,11 @@ jobs:
name: Upload installer
uses: actions/upload-artifact@v3
with:
path: ./build/distributions/${{ vars.name }}-1.0.exe
path: ./build/distributions/${{ vars.name }}-${{ steps.extract_version.outputs.version_number }}.exe
name: windows-installer
retention-days: 1
outputs:
version_number: ${{ steps.extract_version.outputs.version_number }}



Expand Down Expand Up @@ -143,6 +156,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ${{ vars.name }}-1.0.exe
asset_name: ${{ vars.name }}.exe
asset_path: ${{ vars.name }}-${{ needs.build-windows-installer.outputs.version_number }}.exe
asset_name: ${{ vars.name }}-${{ needs.build-windows-installer.outputs.version_number }}.exe
asset_content_type: application/x-binary

0 comments on commit 15221c2

Please sign in to comment.