-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.09 KB
/
Copy pathrelease.yaml
File metadata and controls
46 lines (44 loc) · 1.09 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
name: On New Tag
on:
push:
tags: "*"
jobs:
build:
name: Build
uses: ./.github/workflows/test.yaml
strategy:
matrix:
os:
[
ubuntu-latest,
windows-latest,
macos-15,
macos-15-intel,
macos-26,
macos-26-intel,
]
with:
runs-on: ${{ matrix.os }}
create-artifact: true
test-release: true
create-release:
name: Create release ${{ github.ref_name }}
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v5
with:
path: artifacts
- name: Zip artifacts
run: cd artifacts && for i in */; do zip -r "${i%/}.zip" "$i"; done
- uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
draft: true
generate_release_notes: true
files: artifacts/*.zip
discussion_category_name: Announcements
fail_on_unmatched_files: true
token: ${{ secrets.GITHUB_TOKEN }}