Merge pull request #2 from DaveZheng/auto-deps #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Build binary | |
| run: bun build --compile --target=bun-darwin-arm64 ./src/index.ts --outfile mallex-darwin-arm64 | |
| - name: Generate checksum | |
| run: shasum -a 256 mallex-darwin-arm64 > mallex-darwin-arm64.sha256 | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| mallex-darwin-arm64 | |
| mallex-darwin-arm64.sha256 |