Skip to content

Commit

Permalink
HotFix: strip v from version tag (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyrhyde authored Sep 20, 2023
1 parent 833d5a5 commit bbfda45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
types: [released]

env:
VERSION: ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }}
VERSION: ${{ github.ref_name }}

jobs:
appimage:
Expand Down Expand Up @@ -59,11 +59,14 @@ jobs:
cp etc/packaging/appimages/deploy/cartographer-module-*.AppImage cartographer-module.AppImage
tar czf module.tar.gz cartographer-module.AppImage
- id: stripped-version
run: echo version=${VERSION#v} >> $GITHUB_OUTPUT

- uses: viamrobotics/upload-module@main
if: github.event_name == 'release'
with:
module-path: module.tar.gz
platform: ${{ matrix.platform }}
version: ${{ env.VERSION }}
version: ${{ steps.stripped-version.outputs.version }}
key-id: ${{ secrets.viam_key_id }}
key-value: ${{ secrets.viam_key_value }}

0 comments on commit bbfda45

Please sign in to comment.