forked from TheWover/DInvoke
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.1 KB
/
DInvoke.NetFramework.CI.Package.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: NetFrameWork.Legacy.CI
on:
release:
types: [published]
env:
MAJOR_VERSION: 1
MINOR_VERSION: 0
PATCH_VERSION: 5
jobs:
package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Restore packages
run: nuget restore DInvoke\DInvoke.sln
- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: Build with MSBuild
run: msbuild DInvoke\DInvoke.sln -p:Configuration=Release
- name: Display version number
run: echo "VERSION ${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}"
- name: Pack NuGet
run: nuget pack DInvoke\DInvoke\DInvoke.csproj -Version ${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }} -Prop Configuration=Release
- name: Archive NuGet
uses: actions/upload-artifact@v2
with:
name: NuGet Package
path: DInvoke.${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}.nupkg