Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasschafer committed Nov 30, 2024
1 parent cde73d4 commit 13783d4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
branches: [ "main" ]
# branches: [ "main" ]
paths:
- 'Cargo.toml'
workflow_dispatch:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
build-and-upload:
needs: prepare-release
if: needs.prepare-release.outputs.should_release == 'true'
# if: needs.prepare-release.outputs.should_release == 'true'
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -148,15 +148,13 @@ jobs:
esac
- name: Upload to release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ needs.prepare-release.outputs.version }}
files: |
target/${{ matrix.target }}/release/${{ env.ASSET }}
target/${{ matrix.target }}/release/${{ env.ASSET }}.sha256
target/${{ matrix.target }}/release/${{ env.ASSET }}.sha512
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
for file in target/${{ matrix.target }}/release/${{ env.ASSET }}*; do
gh release upload "v${{ needs.prepare-release.outputs.version }}" "$file" --clobber
done
publish:
needs: [prepare-release, build-and-upload]
Expand Down

0 comments on commit 13783d4

Please sign in to comment.