Skip to content

Commit

Permalink
ci(release): Update release workflow for artifact naming and reposito…
Browse files Browse the repository at this point in the history
…ry checkout
  • Loading branch information
AlbinoGeek committed Jun 22, 2024
1 parent 7575154 commit a6e4a9f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ matrix.arch }}
name: ${{ matrix.os }}-${{ matrix.arch }}
path: build/${{ matrix.os }}-${{ matrix.arch }}/app

release:
Expand All @@ -54,6 +54,10 @@ jobs:
with:
path: build

# Without this, "gh" explodes spectacularily
- name: Checkout Repository
uses: actions/checkout@v4

- name: Upload Binaries
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -62,7 +66,7 @@ jobs:
tagname="${GITHUB_REF#refs/tags/}"
echo "Tag name is $tagname"
echo "Uploading release assets..."
ls -lR build/
gh release create "$tagname" \
--title="${tagname}" \
build/*
ls -lR build/*
files=$(for f in build/*; do echo -n " $f\#"; echo -n $f | sed -e s/build\\/// -e s/latest-// ; done)
echo "Files are $files"
gh release create "$tagname" -t "$tagname" $files

0 comments on commit a6e4a9f

Please sign in to comment.