Skip to content

Commit

Permalink
Fix release pipeline (#27)
Browse files Browse the repository at this point in the history
* fix release pipeline
  • Loading branch information
connorivy authored Jan 4, 2025
1 parent 46debcd commit 90d22f2
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Pack nugets
run: dotnet pack -c Release /p:ContinuousIntegrationBuild=true /p:Version=${{ github.ref_name }} --output .
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true

- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x

- name: Build harmony
run: dotnet build ./Harmony/Harmony/Harmony.csproj -c ReleaseThin

- name: Pack nugets
run: dotnet pack -c Release /p:ContinuousIntegrationBuild=true /p:Version=${{ github.ref_name }} --output .

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

0 comments on commit 90d22f2

Please sign in to comment.