Files
xemu/.github/workflows/release.yml
T
dependabot[bot] 5d6a517337 ci: bump softprops/action-gh-release from 2.6.1 to 3.0.0
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.6.1 to 3.0.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/153bb8e04406b158c6c84fc1615b65b24149a1fe...b4309332981a82ec1c5618f44dd2e27cc8bfbfda)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 13:45:31 -07:00

73 lines
2.2 KiB
YAML

name: Release
on:
workflow_call:
inputs:
ref:
description: "Git ref to build and release"
required: true
type: string
tag:
description: "Tag name for the release"
required: true
type: string
pre-release:
description: "Create as published pre-release instead of draft release"
required: false
type: boolean
default: false
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
with:
ref: ${{ inputs.ref }}
delete_prerelease:
name: Delete pre-release
needs: build
if: ${{ inputs.pre-release }}
uses: ./.github/workflows/delete-prerelease.yml
release:
name: Create release
runs-on: ubuntu-latest
needs: [build, delete_prerelease]
if: ${{ !cancelled() && needs.build.result == 'success' }}
steps:
- name: Clone tree
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
- name: Generate release notes
env:
GH_TOKEN: ${{ github.token }}
run: python3 .github/scripts/gen-changelog.py --ref ${{ inputs.ref }} -o CHANGELOG.md
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v4
with:
path: dist
merge-multiple: true
- name: Add transitionary package aliases
if: ${{ !inputs.pre-release }}
run: |
pushd dist
cp xemu-${{ needs.build.outputs.pkg_version }}-windows-x86_64.zip xemu-win-x86_64-release.zip
cp xemu-${{ needs.build.outputs.pkg_version }}-windows-arm64.zip xemu-win-aarch64-release.zip
- name: Create release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
name: ${{ inputs.pre-release && 'Latest Development Build' || inputs.tag }}
tag_name: ${{ inputs.tag }}
target_commitish: ${{ inputs.pre-release && inputs.ref || '' }}
body_path: CHANGELOG.md
draft: ${{ !inputs.pre-release }}
prerelease: ${{ inputs.pre-release }}
files: |
dist/xemu*.tar.zst
dist/xemu*-win*.zip
dist/xemu*-macos-universal*.zip
dist/xemu*.AppImage