Skip to content

Commit

Permalink
Try to also do Linux x64 release
Browse files Browse the repository at this point in the history
I am not sure if this works
  • Loading branch information
mcraiha committed Jun 6, 2022
1 parent e254181 commit 335baca
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build-Win-Release
name: Build-Releases

on:
push:
Expand All @@ -20,18 +20,25 @@ jobs:
run: echo "CURRENT_TAG=`git describe --tags --abbrev=0`" >> $GITHUB_ENV
- name: Restore dependencies
run: dotnet restore
- name: Build a release
- name: Build a Win-x64 release
run: dotnet publish -c Release -f net6.0 -r win-x64 -p:PublishSingleFile=true --self-contained true -o publish
- name: Rename and move binary
- name: Rename and move Win-x64 binary
run: mv publish/Dithery-cli.exe dithery.exe
- name: Build a Linux-x64 release
run: dotnet publish -c Release -f net6.0 -r linux-x64 -p:PublishSingleFile=true --self-contained true -o publish
- name: Rename and move Linux-x64 binary
run: mv publish/Dithery-cli dithery
- name: Install zip
run: sudo apt install zip
- name: Package
- name: Package Win-x64 release
run: zip -9 release_${{ env.CURRENT_TAG }}-win_x64.zip dithery.exe
- name: Package Linux-x64 release
run: zip -9 release_${{ env.CURRENT_TAG }}-linux_x64.zip dithery
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
release_${{ env.CURRENT_TAG }}-win_x64.zip
release_${{ env.CURRENT_TAG }}-linux_x64.zip

0 comments on commit 335baca

Please sign in to comment.