-
Notifications
You must be signed in to change notification settings - Fork 50
34 lines (29 loc) · 952 Bytes
/
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
34
name: Publish Nuget Package
on:
push:
branches:
- release/* # Default release branch
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Wait for tests to succeed
uses: lewagon/wait-on-check-action@v1.0.0
with:
ref: ${{ github.ref }}
check-name: 'buildAndTest'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Install dependencies
run: dotnet restore
- name: Build Realtime
run: dotnet build ./Supabase/Supabase.csproj --configuration Release --no-restore
# Publish
- name: publish on version change
run: nuget push "**/*.nupkg" -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}