Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Dec 19, 2024
1 parent dc95a15 commit fb15780
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dotnet-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
dotnet-version: [8.0.x]
test-type: [unit-tests, integration-tests]
runs-on: ${{ matrix.os }}
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:

jobs:
nuget:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Build Release
run: dotnet build Reown.NoUnity.slnf -c Release --restore

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

- name: List files
run: tree -L 3

# - 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

0 comments on commit fb15780

Please sign in to comment.