-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1016 Bytes
/
build-test.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
35
36
37
38
39
40
41
42
43
44
name: Build and test
on:
push:
branches: [ main ]
tags: ['*']
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build app for release
run: msbuild cewrapper.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Release -property:Platform=x64
- uses: actions/upload-artifact@v3
with:
name: cewrapper
path: D:\a\cewrapper\cewrapper\x64\Release\cewrapper.exe
deploy:
needs: [build]
runs-on: ubuntu-20.04
steps:
- name: Download the built distribution
uses: actions/download-artifact@v3
with:
name: cewrapper
path: cewrapper
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: cewrapper
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}