-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (64 loc) · 2.14 KB
/
release.yml
File metadata and controls
72 lines (64 loc) · 2.14 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
# Call reusable workflow to build and package
build-and-package:
uses: ./.github/workflows/build-and-package.yml
with:
is_release: true
artifact_retention_days: 1
secrets:
gh_token: ${{ secrets.GH_PAT }}
macos_sign_p12: ${{ secrets.MACOS_SIGN_P12 }}
macos_sign_password: ${{ secrets.MACOS_SIGN_PASSWORD }}
macos_notary_key: ${{ secrets.MACOS_NOTARY_KEY }}
macos_notary_key_id: ${{ secrets.MACOS_NOTARY_KEY_ID }}
macos_notary_issuer_id: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
# Upload artifacts to GitHub Release
upload-to-release:
needs: build-and-package
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Upload Linux GUI archives to release
run: |
for archive in mdv-gui_*.tar.gz; do
if [ -f "$archive" ]; then
echo "Uploading $archive to release..."
gh release upload "${GITHUB_REF#refs/tags/}" "$archive" --clobber
fi
done
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Upload Windows GUI archives to release
run: |
for archive in mdv-gui_*_windows_*.zip; do
if [ -f "$archive" ]; then
echo "Uploading $archive to release..."
gh release upload "${GITHUB_REF#refs/tags/}" "$archive" --clobber
fi
done
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Upload GUI checksums to release
run: |
if [ -f "gui-checksums.txt" ]; then
echo "Uploading GUI checksums to release..."
gh release upload "${GITHUB_REF#refs/tags/}" "gui-checksums.txt" --clobber
else
echo "Warning: gui-checksums.txt not found"
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}