Skip to content

Commit

Permalink
refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eltorio committed Sep 7, 2024
1 parent c93f5ac commit 71f4a08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
run: |
export TAG_NAME=${{ github.event.release.tag_name }}
export TAG_NAME=${TAG_NAME:-"nightly"}
echo $TAG_NAME
mv /tmp/macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip /tmp/macos_${{ matrix.job.arch }}_${TAG_NAME}.zip
gh release create $TAGNAME -t "$TAGNAME}" -n "$TAGNAME"
gh release upload $TAGNAME /tmp/macos_${{ matrix.job.arch }}_${TAG_NAME}.zip
gh release create $TAG_NAME -t "$TAG_NAME}" -n "$TAG_NAME"
gh release upload $TAG_NAME /tmp/macos_${{ matrix.job.arch }}_${TAG_NAME}.zip
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
run: |
export TAG_NAME=${{ github.event.release.tag_name }}
export TAG_NAME=${TAG_NAME:-"nightly"}
echo $TAG_NAME
mv /tmp/ubuntu_amd64_${{ github.event.release.tag_name }}.zip /tmp/ubuntu_amd64_${TAG_NAME}.zip
gh release create $TAGNAME -t "$TAGNAME}" -n "$TAGNAME"
gh release upload $TAGNAME /tmp/ubuntu_amd64_${TAG_NAME}.zip
gh release create $TAG_NAME -t "$TAG_NAME}" -n "$TAG_NAME"
gh release upload $TAG_NAME /tmp/ubuntu_amd64_${TAG_NAME}.zip
5 changes: 3 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
run: |
export TAG_NAME=${{ github.event.release.tag_name }}
export TAG_NAME=${TAG_NAME:-"nightly"}
echo $TAG_NAME
mv /tmp/macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip /tmp/windows_${{ matrix.job.arch }}_${TAG_NAME}.zip
gh release create $TAGNAME -t "$TAGNAME}" -n "$TAGNAME"
gh release upload $TAGNAME /tmp/windows_${{ matrix.job.arch }}_${TAG_NAME}.zip
gh release create $TAG_NAME -t "$TAG_NAME}" -n "$TAG_NAME"
gh release upload $TAG_NAME /tmp/windows_${{ matrix.job.arch }}_${TAG_NAME}.zip

0 comments on commit 71f4a08

Please sign in to comment.