forked from squid-box/SevenZipSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 947 Bytes
/
deploy.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
on:
push:
branches: [ "master" ]
env:
VERSION: '1.6.1.${{ github.run_number }}'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Compile solution
run: |
dotnet build -c Release /p:AssemblyVersion=${{ env.VERSION }} /p:Version=${{ env.VERSION }}
dotnet build -c LiteRelease /p:AssemblyVersion=${{ env.VERSION }} /p:Version=${{ env.VERSION }}
- name: Pack NuGets
run: |
nuget pack package.regular.nuspec -version ${{ env.VERSION }}
nuget pack package.lite.nuspec -version ${{ env.VERSION }}
- name: Push NuGet packages
run: nuget push Squid-Box.SevenZipSharp*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json