Skip to content

Commit

Permalink
CI: isolated deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Aug 21, 2023
1 parent b7d697b commit 4afc97a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Package

on:
workflow_dispatch:

jobs:
build:
name: Package and Deploy
runs-on: windows-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v2
- name: ✨ Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: 🚚 Restore
run: dotnet restore src
- name: 🛠️ Build
run: dotnet build src --configuration Release --no-restore
- name: 🧪 Test
run: dotnet test src --configuration Release --no-build
- name: 📦 Pack
run: dotnet pack src --configuration Release --no-build
- name: 💾 Store Release Package
uses: actions/upload-artifact@v2
with:
name: Packages
retention-days: 1
path: |
src/FftSharp/bin/Release/*.nupkg
src/FftSharp/bin/Release/*.snupkg
- name: 🔑 Configure NuGet Secrets
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: 🚀 Deploy Release Package
run: nuget push "src\FftSharp\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json

0 comments on commit 4afc97a

Please sign in to comment.