Skip to content

Commit

Permalink
Create DInvoke.NetFramework.CI.Package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWover committed Oct 29, 2020
1 parent ffde295 commit 416f1f7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/DInvoke.NetFramework.CI.Package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NetFrameWork.Legacy.CI

on:
release:
types: [published]

env:
MAJOR_VERSION: 1
MINOR_VERSION: 3
PATCH_VERSION: 0
jobs:
package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1
- 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

0 comments on commit 416f1f7

Please sign in to comment.