v0.0.4 #6
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 dylib | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| release-dylib: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| env: | |
| DYLIB_NAME: "libstandardloop-json.dylib" | |
| HEADER_NAME: "json.h" | |
| ZIP_NAME: "libstandardloop-json.zip" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: echo vars | |
| run: | | |
| echo ${{ env.DYLIB_NAME }} | |
| echo ${{ env.HEADER_NAME }} | |
| echo ${{ env.ZIP_NAME }} | |
| - name: Install Task | |
| uses: go-task/setup-task@v1 | |
| - name: Build the dylib | |
| run: | | |
| task release:build | |
| - name: Archive dylib | |
| run: | | |
| zip ${{ env.ZIP_NAME }} ${{ env.DYLIB_NAME }} ${{ env.HEADER_NAME }} | |
| - name: Create dylib Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: ${{ env.ZIP_NAME }} | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |