Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
runeheidem committed Jan 24, 2022
2 parents 5274922 + 8ea22c8 commit ab87975
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: publish

name: Publish
on:
release:
types: [push]
types: [published]

#on:
# release:
# types: [published]

jobs:
release:
name: Release
strategy:
matrix:
kind: ['linux', 'windowsø', 'macOS']
kind: ['linux', 'windows', 'macOS']
include:
- kind: linux
os: ubuntu-latest
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:
release_name="App-$tag-${{ matrix.target }}"
# Build everything
dotnet publish src/App/App.csproj --framework netcoreapp3.1 --runtime "${{ matrix.target }}" -c Release -o "$release_name"
dotnet publish WebApplication1/WeatherAPI.csproj --framework net5.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name"
# Pack files
if [ "${{ matrix.target }}" == "win-x64" ]; then
Expand All @@ -50,3 +53,10 @@ jobs:
# Delete output directory
rm -r "$release_name"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "App*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ab87975

Please sign in to comment.