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 0889ed3 commit 9cf7345
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '>=1.20'
- name: Create archive directory
run: mkdir filediver
- name: Prepare archive directory
run: |
mkdir filediver
cp README.md LICENSE filediver/
- name: Build Executable
run: GOOS=linux GOARCH=amd64 go build -o filediver/filediver ./cmd/filediver-cli
- name: Create archive
run: |
cp filediver-cli README.md LICENSE filediver/
mv filediver/filediver-cli filediver/filediver
zip -r filediver-linux-amd64.zip filediver/
run: zip -r filediver-linux-amd64.zip filediver/
- name: Upload archive
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -42,19 +41,19 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '>=1.20'
- name: Create archive directory
run: mkdir filediver
- name: Prepare archive directory
run: |
mkdir filediver
cp README.md LICENSE filediver/
- name: Build Executable
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 .
mv ffmpeg-6.1.1-essentials_build/bin/ffmpeg.exe filediver/
- name: Create archive
run: |
cp filediver-cli.exe ffmpeg.exe README.md LICENSE filediver/
zip -r filediver-windows-amd64.zip filediver/
run: zip -r filediver-windows-amd64.zip filediver/
- name: Upload archive
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 9cf7345

Please sign in to comment.