-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (30 loc) · 1.37 KB
/
Copy pathdotnet-core.yml
File metadata and controls
32 lines (30 loc) · 1.37 KB
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
name: .NET Core
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*.*.*' # v1.0.0 과같이 태깅을 달면 배포가 작동됩니다.
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Install dependencies
run: dotnet restore AkkaDotModule/AkkaDotModule.csproj
- name: Build
run: dotnet build AkkaDotModule/AkkaDotModule.csproj --configuration Release --no-restore
- name: Add private GitHub registry to NuGet
run: dotnet nuget add source https://nuget.pkg.github.com/psmon/index.json -n psmon.github -u ${{ secrets.NUGET_USER }} -p ${{ secrets.NUGET_TOKEN }} --store-password-in-clear-text
- name: Push generated package to GitHub registry
run: dotnet nuget push AkkaDotModule/bin/Release/AkkaDotModule.Webnori.$(git describe --tags | sed s/[v]//g).nupkg --source "psmon.github"
- name: Push generated package to Nuget registry
run: dotnet nuget push AkkaDotModule/bin/Release/AkkaDotModule.Webnori.$(git describe --tags | sed s/[v]//g).nupkg -k ${{ secrets.NUGET_PUBLIC }} --source "https://api.nuget.org/v3/index.json"