-
-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (38 loc) · 997 Bytes
/
Copy pathcreate-release.yml
File metadata and controls
45 lines (38 loc) · 997 Bytes
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
name: Create Release
on:
push:
tags:
- 'v**'
jobs:
build-installer:
uses: ./.github/workflows/build-installer.yml
with:
version: ${{ github.ref_name }}
build-packages:
uses: ./.github/workflows/build-packages.yml
with:
version: ${{ github.ref_name }}
create-release:
needs: [build-installer, build-packages]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Download Installer Artifact
uses: actions/download-artifact@v7
with:
name: installer-x64
path: ./artifacts
- name: Download Zip Artifacts
uses: actions/download-artifact@v7
with:
name: release-zips
path: ./artifacts
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${{ github.ref_name }}"
gh release create "$tag" --generate-notes ./artifacts/*