Skip to content

Commit

Permalink
chore: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Dec 21, 2023
1 parent 76487d7 commit b0ac862
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

jobs:
build:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand All @@ -23,20 +23,9 @@ jobs:
with:
type: 'unit-tests'
project-id: ${{ secrets.PROJECT_ID }}

- name: Build Release
run: dotnet build -c Release

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
**/bin/**/*.dll
!**/Tests/**/bin/**/*.dll

pack:
needs: build
needs: test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand All @@ -48,12 +37,23 @@ jobs:
with:
dotnet-version: |
8.0.x
- name: Build Release
run: dotnet build -c Release

- name: Pack nugets
run: dotnet pack -c Release --no-build --output .

- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
**/bin/**/*.dll
!**/Tests/**/bin/**/*.dll
dispatch:
needs: pack
Expand Down

0 comments on commit b0ac862

Please sign in to comment.