name: Build installers and release
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/ci.yml
publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: write
steps:
- uses: actions/download-artifact@v5
with:
pattern: installer-*
path: release
merge-multiple: true
- name: Publish the release
working-directory: release
env:
GH_TOKEN: ${{ github.token }}
run: |
sha256sum *.exe *.dmg *.AppImage > SHA256SUMS.txt
gh release create "${GITHUB_REF_NAME}" \
*.exe *.dmg *.AppImage SHA256SUMS.txt \
--repo "${GITHUB_REPOSITORY}" --verify-tag \
--title "${GITHUB_REF_NAME}" \
--generate-notes