From c5a432d4d86235297e94f531379d3deed5512234 Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:23:43 +0100 Subject: [PATCH 1/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f8e31f8..7cfc882 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,8 +1,14 @@ name: publish on: - release: - types: [push] + push: + branches: [ master ] + pull_request: + branches: [ master ] + +#on: +# release: +# types: [published] jobs: release: From af85e87d3398d355f8652722c9f4e4093e768edd Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:25:53 +0100 Subject: [PATCH 2/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7cfc882..2839785 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,7 +26,7 @@ jobs: - kind: macOS os: macos-latest target: osx-x64 - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - name: Checkout From 398bfe8202aa484b51442ba8ece333fd0f717947 Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:29:21 +0100 Subject: [PATCH 3/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2839785..f750bdd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,10 +1,7 @@ -name: publish - +name: Publish on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + release: + types: [published] #on: # release: @@ -26,7 +23,7 @@ jobs: - kind: macOS os: macos-latest target: osx-x64 - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout From a6d59fa07dbb173fd1d1bf47c0489be69a0ec91d Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:32:14 +0100 Subject: [PATCH 4/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f750bdd..246d556 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -12,7 +12,7 @@ jobs: name: Release strategy: matrix: - kind: ['linux', 'windowsø', 'macOS'] + kind: ['linux', 'windows', 'macOS'] include: - kind: linux os: ubuntu-latest From 7d244c42a40752bed7e3b831006447eb9ecef135 Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:34:53 +0100 Subject: [PATCH 5/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 246d556..c8a95a3 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,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 src/WebApplication1/WeatherAPI.csproj --framework netcoreapp5.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" # Pack files if [ "${{ matrix.target }}" == "win-x64" ]; then From db2d1f1f84ce31e2b7b3b1dc05af57e3f40bef78 Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:38:52 +0100 Subject: [PATCH 6/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c8a95a3..db3a94e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,7 +42,7 @@ jobs: release_name="App-$tag-${{ matrix.target }}" # Build everything - dotnet publish src/WebApplication1/WeatherAPI.csproj --framework netcoreapp5.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" + dotnet publish WebApplication1/WeatherAPI.csproj --framework netcoreapp5.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" # Pack files if [ "${{ matrix.target }}" == "win-x64" ]; then From 97f3a8e2c61a9b0481f6915481238ab8c8c59edb Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:41:43 +0100 Subject: [PATCH 7/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index db3a94e..b55cc20 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -42,7 +42,7 @@ jobs: release_name="App-$tag-${{ matrix.target }}" # Build everything - dotnet publish WebApplication1/WeatherAPI.csproj --framework netcoreapp5.0 --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 From 8ea22c8399f06fa0854062a7678d1d64f41d0ca2 Mon Sep 17 00:00:00 2001 From: runeheidem <97038411+runeheidem@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:46:10 +0100 Subject: [PATCH 8/8] Update dotnet.yml --- .github/workflows/dotnet.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b55cc20..ede6ac7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -53,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 }}