-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 1.02 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
push:
tags: ['*']
jobs:
Run-Tests:
uses: ./.github/workflows/tiledb-csharp.yml
Release:
runs-on: ubuntu-latest
needs: Run-Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.4xx
- name: Display .NET versions
run: dotnet --info
- name: Pack TileDB.CSharp
run: dotnet pack -c Release ./sources/TileDB.CSharp/TileDB.CSharp.csproj -o pack
# In case pushing to NuGet fails we upload the packages as artifacts to push them ourselves.
# We must push these packages GitHub Actions generated because they are marked as deterministic.
- name: Upload packages as artifacts
uses: actions/upload-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 }}