-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 1.04 KB
/
prerelease.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: Prerelease
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build Reason
run: echo ${{github.ref}} and ${{github.event_name}}
- name: Build Content
run: dotnet build ./Content/Vue.Simple.Template.sln -v quiet
- name: Pack
run: dotnet pack Vue.Simple.Project.Template.csproj -v quiet -o $NUPKGS --include-symbols
- name: Publish to Github Package
run: dotnet nuget push "$NUPKGS/*.nupkg" --skip-duplicate -s $GH_FEED -k ${{ secrets.GH_PACKAGES_KEY }}
- name: Publish to Myget Package
run: dotnet nuget push "$NUPKGS/*.nupkg" --skip-duplicate -s $MYGET_FEED -k ${{ secrets.MYGET_PACKAGES_KEY }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
GH_FEED: https://nuget.pkg.github.com/jaxelr/index.json
MYGET_FEED: https://www.myget.org/F/vue-simple-template/api/v2/package
NUPKGS: ./.nupkgs