Better output support #19
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: "Create release" | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| jobs: | |
| build: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: antongolub/action-setup-bun@v1 | |
| - name: Build | |
| working-directory: ./ | |
| run: | | |
| bun install | |
| bun build ./index.ts \ | |
| --compile \ | |
| --outfile ./bin/dotnetman | |
| - name: Zip release | |
| working-directory: ./ | |
| run: | | |
| zip --junk-paths ./dotnetman-${{ github.ref_name }}.zip ./bin/* | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref_name }} | |
| draft: false | |
| prerelease: false | |
| - name: Upload Release Asset | |
| id: upload-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./dotnetman-${{ github.ref_name }}.zip | |
| asset_name: dotnetman-${{ github.ref_name }}.zip | |
| asset_content_type: application/zip |