Workflows Fix uploading assets

This commit is contained in:
Andrei Kvapil
2025-04-03 15:37:48 +02:00
parent 9ff9f8f601
commit d10a9ad4e6
2 changed files with 3 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ jobs:
- name: Upload assets
if: steps.check_release.outputs.skip == 'false'
run: make upload_assets
run: make upload_assets VERSION=${GITHUB_REF#refs/tags/}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,7 +1,8 @@
#!/bin/bash
set -xe
version=$(git describe --tags)
version=${VERSION:-$(git describe --tags)}
gh release upload --clobber $version _out/assets/cozystack-installer.yaml
gh release upload --clobber $version _out/assets/metal-amd64.iso
gh release upload --clobber $version _out/assets/metal-amd64.raw.xz