generated from habedi/template-go-project
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.52 KB
/
release.yml
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
name: Create Release
on:
workflow_dispatch: # Enable manual execution
workflow_run:
workflows:
- Windows Build
- Linux Build
- MacOS Build
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: gogg-windows-amd64
- name: Download Linux Artifact
uses: actions/download-artifact@v4
with:
name: gogg-linux-amd64
- name: Download MacOS Artifact
uses: actions/download-artifact@v4
with:
name: gogg-macos-universal
- name: List Downloaded Files (Debugging)
run: ls -R .
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}
- Includes binaries for Windows, Linux, and macOS.
artifacts: |
gogg-windows-amd64.zip
gogg-linux-amd64.zip
gogg-macos-universal.zip
draft: false
prerelease: false