-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 944 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
name: Release
on:
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yml
package:
needs: test
uses: ./.github/workflows/package.yml
release:
needs: package
if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: packages
path: ./out
- name: Create Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: ${{ needs.package.outputs.PrereleaseVersion != '' }}
title: Release ${{ needs.package.outputs.NuGetPackageVersion }}
automatic_release_tag: ${{ needs.package.outputs.NuGetPackageVersion }}
files: |
./out/*
- name: Push to Nuget.org
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_ORG_TOKEN }} --source https://api.nuget.org/v3/index.json