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 194a1ba
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release

on:
push:
# branches: [ "main" ]
# TODO: remove the below and uncomment various lines again
pull_request:
branches: [ "main" ]
paths:
- 'Cargo.toml'
Expand Down Expand Up @@ -60,7 +63,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 +151,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 194a1ba

Please sign in to comment.