on: workflow_dispatch: # run the workflow manually concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # Cancel any in-progress runs of this workflow when a new run is triggered on the same ref (branch or tag) permissions: contents: write env: RELEASE: Release v3.5.0 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true name: Release jobs: build: name: Bundle runs-on: ${{ matrix.os }} strategy: matrix: branch: [v3.5.0, v2.5.0, v1.15.0] # [dev,dev2,dev3] # we build on the oldest ubuntu version for better binary compatibility. os: [windows-latest, macOS-latest, macos-15-intel, ubuntu-22.04, ubuntu-22.04-arm] steps: # Checkout: https://github.com/actions/checkout - name: Checkout repository uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: ref: ${{ matrix.branch }} fetch-tags: true fetch-depth: 0 # Build - name: Build (Windows) if: runner.os == 'Windows' run: | ./bin/bundle.bat - name: Build (Linux, macOS) if: runner.os != 'Windows' run: | ./bin/bundle.sh # Create a release: https://github.com/softprops/action-gh-release (MIT license) - name: Release uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 if: ${{ env.RELEASE != '' && env.RELEASE != 'no' }} with: name: ${{ env.RELEASE }} draft: true body_path: doc/release-notes.md files: | out/bundle/*.tar.gz