-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.1 KB
/
release-to-market.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
35
36
37
38
39
40
41
42
43
name: Release to Market
on: workflow_dispatch
env:
nugets-dir: nupkgs
jobs:
publish:
runs-on: ubuntu-latest
steps:
# https://github.com/dawidd6/action-download-artifact
-
name: Download artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build-and-test.yml # Required, workflow file name or ID
branch: master
name: Artifacts
-
name: Read version
id: version
uses: antifree/[email protected]
with:
filename: version.json
-
name: Publish Nugets to nuget.org
run: dotnet nuget push "${{ env.nugets-dir }}/*.nupkg" -k ${{ secrets.nuget_api_key }} -s https://api.nuget.org/v3/index.json
-
name: Make Github Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.json_nuget-version }}
files: ${{ env.nugets-dir }}/*.nupkg
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}