Skip to content

Commit

Permalink
Merge pull request #25 from CompositionalIT/replace-publish-nuget-gh-…
Browse files Browse the repository at this point in the history
…action

Replace brandedoutcast/publish-nuget action with dotnet pack, dotnet nuget publish
  • Loading branch information
jwthomson authored Feb 2, 2024
2 parents 3e9a46f + e13bfe8 commit c3f7500
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Check out
uses: actions/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 6.0.300
- name: Restore tools
Expand All @@ -25,8 +26,11 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Pack
run: dotnet pack --configuration Release --no-build --output .
working-directory: ./src
if: ${{ github.ref == 'refs/heads/main' }}
- name: Publish
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: src/Feliz.AgGrid.fsproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
run: dotnet nuget publish "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
working-directory: ./src
if: ${{ github.ref == 'refs/heads/main' }}

0 comments on commit c3f7500

Please sign in to comment.