Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Epictek authored May 5, 2021
1 parent e665082 commit 7cd37df
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,24 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Publish
run: dotnet publish -o out -c Release --self-contained true -r linux-arm64
run: |
dotnet publish -o linux-arm64 -c Release --self-contained true -r linux-arm64
dotnet publish -o linux-x64 -c Release --self-contained true -r linux-x64
dotnet publish -o win-x64 -c Release --self-contained true -r win-x64
- name: Rename
run: |
mv linux-arm64/tldr-Discord linux-arm64/tldr-Discord-arm64
mv linux-x64/tldr-Discord linux-x64/tldr-Discord-x64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: out/tldr-Discord
files: |
linux-arm64/tldr-Discord-arm64
linux-x64/tldr-Discord-x64
arm64/appsettings.json
win-x64/tldr-Discord.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7cd37df

Please sign in to comment.