Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Jan 13, 2025
1 parent 707dd0c commit 0889ed3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '>=1.20'
- name: Create archive directory
run: mkdir filediver
- name: Build Executable
run: GOOS=linux GOARCH=amd64 go build ./cmd/filediver-cli
run: GOOS=linux GOARCH=amd64 go build -o filediver/filediver ./cmd/filediver-cli
- name: Create archive
run: |
mkdir filediver
cp filediver-cli README.md LICENSE filediver/
mv filediver/filediver-cli filediver/filediver
zip -r filediver-linux-amd64.zip filediver/
Expand All @@ -41,18 +42,18 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '>=1.20'
- name: Create archive directory
run: mkdir filediver
- name: Build Executable
run: GOOS=windows GOARCH=amd64 go build ./cmd/filediver-cli
run: GOOS=windows GOARCH=amd64 go build -o filediver/filediver.exe ./cmd/filediver-cli
- name: Download FFmpeg binary
run: |
wget https://github.com/GyanD/codexffmpeg/releases/download/6.1.1/ffmpeg-6.1.1-essentials_build.zip
unzip ffmpeg-6.1.1-essentials_build.zip ffmpeg-6.1.1-essentials_build/bin/ffmpeg.exe
mv ffmpeg-6.1.1-essentials_build/bin/ffmpeg.exe .
- name: Create archive
run: |
mkdir filediver
cp filediver-cli.exe ffmpeg.exe README.md LICENSE filediver/
mv filediver/filediver-cli.exe filediver/filediver.exe
zip -r filediver-windows-amd64.zip filediver/
- name: Upload archive
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 0889ed3

Please sign in to comment.