Skip to content

Commit

Permalink
properly set build version
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Voigt committed Feb 20, 2024
1 parent 048bab2 commit 38116a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
name: version

- name: Set version as env variable
id: set_build_number
run: |
echo "marketing_build_version=$(cat version.txt)" >> $GITHUB_ENV
Expand All @@ -27,7 +28,7 @@ jobs:
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
MARKETING_VERSION: ${{ steps.decide_build_number.outputs.marketing_build_version }}
MARKETING_VERSION: ${{ steps.set_build_number.outputs.marketing_build_version }}
with:
tag_name: v${{ env.MARKETING_VERSION }}
release_name: Release ${{ env.MARKETING_VERSION }}
Expand All @@ -44,6 +45,8 @@ jobs:

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
MARKETING_VERSION: ${{ steps.set_build_number.outputs.marketing_build_version }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_name: "cumulocity-clients-kotlin-${{ env.MARKETING_VERSION }}.jar"
Expand Down

0 comments on commit 38116a6

Please sign in to comment.