Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tibel committed Mar 7, 2021
1 parent c29f7d8 commit a227682
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Restore dependencies
run: msbuild Weakly.sln /t:Restore /p:Configuration=Release

- name: Build
run: msbuild Weakly.sln /p:Configuration=Release /p:VersionSuffix=ci.${{ github.run_number }}

- name: Pack
run: msbuild Weakly.sln /t:Pack /p:Configuration=Release /p:VersionSuffix=ci.${{ github.run_number }}

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: NuGet packages
path: src/**/bin/**/*.nupkg

0 comments on commit a227682

Please sign in to comment.