Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
Run-Tests:
uses: ./.github/workflows/tiledb-csharp.yml
Release:
Pack:
runs-on: ubuntu-latest
needs: Run-Tests
steps:
Expand All @@ -23,9 +23,31 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: nuget-release
path: pack/
path: ./pack
Release:
runs-on: ubuntu-latest
needs: Pack
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.4xx
- name: Obtain NuGet API token
uses: nuget/login@v1
id: nuget-login
with:
user: ${{ vars.NUGET_USER }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious where NUGET_USER would be set?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only see actions secrets in the settings panel so probably I am lacking permissions for environments settings, but SGTM 👍

if: vars.NUGET_USER != ''
- name: Download package artifacts
uses: actions/download-artifact@v4
with:
name: nuget-release
path: ./pack
- name: Push packages to NuGet
shell: bash
run: |
cd pack
dotnet nuget push "*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.TILEDB_CSHARP_NUGET_KEY }}
dotnet nuget push "*.nupkg" -s ${{ vars.NUGET_FEED }} -k ${{ steps.nuget-login.outputs.NUGET_API_KEY || secrets.NUGET_KEY }}
Loading