forked from qupath/qupath
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.75 KB
/
github-release.yml
File metadata and controls
59 lines (49 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Draft a GitHub release
on:
workflow_dispatch:
inputs:
extensions:
description: Comma-separated list of extensions to build with.
required: false
type: string
concurrency: release-${{ github.ref }}
permissions:
contents: write
jobs:
jpackage:
name: Run JPackage
uses: ./.github/workflows/jpackage.yml
with:
extensions: ${{ inputs.extensions }}
release:
needs: jpackage
name: Draft release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set QuPath version
shell: bash
run: |
echo "QUPATH_VERSION=$(cat VERSION)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
merge-multiple: true
pattern: QuPath*
- name: Wrangle files
shell: bash
run: |
mv QuPath-${{ env.QUPATH_VERSION }}.msi QuPath-v${{ env.QUPATH_VERSION }}-Windows.msi
mv QuPath-${{ env.QUPATH_VERSION }}.zip QuPath-v${{ env.QUPATH_VERSION }}-Windows.zip
mv QuPath-${{ env.QUPATH_VERSION }}-x64.pkg QuPath-v${{ env.QUPATH_VERSION }}-Mac-x64.pkg
mv QuPath-${{ env.QUPATH_VERSION }}-arm64.pkg QuPath-v${{ env.QUPATH_VERSION }}-Mac-arm64.pkg
- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create --draft v${{ env.QUPATH_VERSION }} -t ${{ github.sha }} --title v${{ env.QUPATH_VERSION }} \
QuPath-v${{ env.QUPATH_VERSION }}-Windows.msi \
QuPath-v${{ env.QUPATH_VERSION }}-Windows.zip \
QuPath-v${{ env.QUPATH_VERSION }}-Mac-x64.pkg \
QuPath-v${{ env.QUPATH_VERSION }}-Mac-arm64.pkg \
QuPath-v${{ env.QUPATH_VERSION }}-Linux.tar.xz