-
-
Notifications
You must be signed in to change notification settings - Fork 2
141 lines (138 loc) · 4.71 KB
/
goreleaser.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: goreleaser
on:
workflow_dispatch:
pull_request:
push:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Set Vars
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "GORELEASER_FLAGS=--snapshot" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean ${{ env.GORELEASER_FLAGS }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload gphotosdl_darwin_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_darwin_amd64_v1
path: dist/gphotosdl_darwin_amd64_v1/*
- name: Upload gphotosdl_darwin_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_darwin_arm64
path: dist/gphotosdl_darwin_arm64/*
- name: Upload gphotosdl_freebsd_386
uses: actions/upload-artifact@v4
with:
name: gphotosdl_freebsd_386
path: dist/gphotosdl_freebsd_386/*
- name: Upload gphotosdl_freebsd_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_freebsd_amd64_v1
path: dist/gphotosdl_freebsd_amd64_v1/*
- name: Upload gphotosdl_freebsd_arm_6
uses: actions/upload-artifact@v4
with:
name: gphotosdl_freebsd_arm_6
path: dist/gphotosdl_freebsd_arm_6/*
- name: Upload gphotosdl_freebsd_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_freebsd_arm64
path: dist/gphotosdl_freebsd_arm64/*
- name: Upload gphotosdl_linux_386
uses: actions/upload-artifact@v4
with:
name: gphotosdl_linux_386
path: dist/gphotosdl_linux_386/*
- name: Upload gphotosdl_linux_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_linux_amd64_v1
path: dist/gphotosdl_linux_amd64_v1/*
- name: Upload gphotosdl_linux_arm_6
uses: actions/upload-artifact@v4
with:
name: gphotosdl_linux_arm_6
path: dist/gphotosdl_linux_arm_6/*
- name: Upload gphotosdl_linux_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_linux_arm64
path: dist/gphotosdl_linux_arm64/*
- name: Upload gphotosdl_netbsd_386
uses: actions/upload-artifact@v4
with:
name: gphotosdl_netbsd_386
path: dist/gphotosdl_netbsd_386/*
- name: Upload gphotosdl_netbsd_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_netbsd_amd64_v1
path: dist/gphotosdl_netbsd_amd64_v1/*
- name: Upload gphotosdl_netbsd_arm_6
uses: actions/upload-artifact@v4
with:
name: gphotosdl_netbsd_arm_6
path: dist/gphotosdl_netbsd_arm_6/*
- name: Upload gphotosdl_netbsd_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_netbsd_arm64
path: dist/gphotosdl_netbsd_arm64/*
- name: Upload gphotosdl_openbsd_386
uses: actions/upload-artifact@v4
with:
name: gphotosdl_openbsd_386
path: dist/gphotosdl_openbsd_386/*
- name: Upload gphotosdl_openbsd_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_openbsd_amd64_v1
path: dist/gphotosdl_openbsd_amd64_v1/*
- name: Upload gphotosdl_openbsd_arm_6
uses: actions/upload-artifact@v4
with:
name: gphotosdl_openbsd_arm_6
path: dist/gphotosdl_openbsd_arm_6/*
- name: Upload gphotosdl_openbsd_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_openbsd_arm64
path: dist/gphotosdl_openbsd_arm64/*
- name: Upload gphotosdl_windows_386
uses: actions/upload-artifact@v4
with:
name: gphotosdl_windows_386
path: dist/gphotosdl_windows_386/*
- name: Upload gphotosdl_windows_amd64_v1
uses: actions/upload-artifact@v4
with:
name: gphotosdl_windows_amd64_v1
path: dist/gphotosdl_windows_amd64_v1/*
- name: Upload gphotosdl_windows_arm_6
uses: actions/upload-artifact@v4
with:
name: gphotosdl_windows_arm_6
path: dist/gphotosdl_windows_arm_6/*
- name: Upload gphotosdl_windows_arm64
uses: actions/upload-artifact@v4
with:
name: gphotosdl_windows_arm64
path: dist/gphotosdl_windows_arm64/*