Skip to content

Commit

Permalink
Update DInvoke.NetFramework.CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWover committed Oct 29, 2020
1 parent d6cd538 commit 796fd18
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/DInvoke.NetFramework.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,21 @@ name: NetFrameWork.Legacy.CI

on: [push]

env:
MAJOR_VERSION: 1
MINOR_VERSION: 3
PATCH_VERSION: 0

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.3
- name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1
uses: NuGet/setup-nuget@v1.0.2
- name: Restore packages
run: nuget restore DInvoke\DInvoke.sln
- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
uses: microsoft/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 artifacts
uses: actions/upload-artifact@v2
with:
name: DInvoke AnyCPU Release
path: DInvoke\DInvoke\bin\Release\DInvoke.dll
- 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 796fd18

Please sign in to comment.