Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 278911e

Browse files
authored
Create main.yml
Add GitHub Actions workflow
1 parent b680e8e commit 278911e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
env:
6+
config: Release
7+
githubvsSolution: GitHubVS.sln
8+
9+
# Controls when the action will run. Triggers the workflow on push or pull request
10+
# events but only for the master branch
11+
on:
12+
push:
13+
branches: [ master ]
14+
pull_request:
15+
branches: [ master ]
16+
17+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
18+
jobs:
19+
# This workflow contains a single job called "build"
20+
build:
21+
# The type of runner that the job will run on
22+
runs-on: windows-latest
23+
24+
# Steps represent a sequence of tasks that will be executed as part of the job
25+
steps:
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/checkout@v2
28+
29+
- name: Add msbuild to PATH
30+
uses: microsoft/[email protected]
31+
32+
- uses: nuget/setup-nuget@v1
33+
with:
34+
nuget-version: '5.x'
35+
36+
- name: NuGet restore ${{ env.githubvsSolution }}
37+
run: nuget restore ${{ env.githubvsSolution }}
38+
39+
- name: MSBuild ${{ env.githubvsSolution }}
40+
run: |
41+
msbuild $(env.githubvsSolution) /p:Configuration=${{ env.config }} /p:DeployExtension=False /p:GitHubVS_ClientId=${{ secrets.GitHubVS_ClientId }} /p:GitHubVS_ClientSecret=${{ secrets.GitHubVS_ClientSecret }}

0 commit comments

Comments
 (0)