forked from block-core/blockcore
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.32 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish Release Packages
on:
release:
types: [published]
# repository_dispatch:
# types: [publish-packages]
workflow_dispatch:
jobs:
publishPackages:
runs-on: ubuntu-latest
env:
SOLUTION_PATH: 'src/Blockcore.sln'
BUILD_CONFIGURATION: 'Release'
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Log Variables
run: |
echo "action - ${{ github.event.action }}"
echo "url - ${{ github.event.release.url }}"
echo "assets_url - ${{ github.event.release.assets_url }}"
echo "id - ${{ github.event.release.id }}"
echo "tag_name - ${{ github.event.release.tag_name }}"
echo "assets - ${{ github.event.assets }}"
echo "assets[0] - ${{ github.event.assets[0] }}"
- name: Release Download
uses: sondreb/action-release-download@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
url: ${{ github.event.release.assets_url }}
folder: "./artifacts/"
- name: Display structure of downloaded files
run: ls -R
- name: Nuget Push
run: nuget push "${{github.workspace}}/artifacts/*.nupkg" -ApiKey ${{secrets.NUGET_KEY}} -Source "https://api.nuget.org/v3/index.json" -SkipDuplicate