-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.26 KB
/
build-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
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release-linux:
name: Release Linux Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
ldflags: -s -w
project_path: "./cmd/filediver-cli"
binary_name: "filediver"
asset_name: "filediver-linux-amd64"
extra_files: LICENSE README.md
release-windows:
name: Release Windows Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: wget https://github.com/GyanD/codexffmpeg/releases/download/6.1.1/ffmpeg-6.1.1-essentials_build.zip
- run: unzip ffmpeg-6.1.1-essentials_build.zip ffmpeg-6.1.1-essentials_build/bin/ffmpeg.exe
- run: mv ffmpeg-6.1.1-essentials_build/bin/ffmpeg.exe .
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: windows
goarch: amd64
ldflags: -s -w
project_path: "./cmd/filediver-cli"
binary_name: "filediver"
asset_name: "filediver-windows-amd64"
extra_files: LICENSE README.md ffmpeg.exe