Release #7
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| assets: | |
| name: Build and release assets | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set the release version (tag) | |
| run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
| - name: Setup Wasmtime | |
| uses: bytecodealliance/actions/wasmtime/setup@v1 | |
| with: | |
| version: "31.0.0" | |
| - name: "Install Go" | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: "Install TinyGo" | |
| run: | | |
| wget https://github.com/tinygo-org/tinygo/releases/download/v0.37.0/tinygo_0.37.0_amd64.deb | |
| sudo dpkg -i tinygo_0.37.0_amd64.deb | |
| - name: Build | |
| env: | |
| ENABLE_WASM_OPT: false | |
| run: make build | |
| - name: Test | |
| run: make test | |
| - name: generate checksums | |
| run: | | |
| sha256sum redirect.wasm > checksums-${{ env.RELEASE_VERSION }}.txt | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true | |
| files: | | |
| redirect.wasm | |
| checksums-${{ env.RELEASE_VERSION }}.txt |