-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1022 Bytes
/
main.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
name: main
on:
workflow_dispatch:
inputs:
build_msi:
description: 'Build Installer'
required: false
default: true
type: boolean
push:
branches:
- main
jobs:
build:
# Use Windows 2019 image since this one has the .NET Framework 4.7.2 pre-installed.
# https://github.com/actions/runner-images/blob/main/images/win/Windows2019-Readme.md
runs-on: windows-2019
env:
# Environment variable which points to the VS 2019 IDE folder.
VS_COMMON_IDE_PATH: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE
steps:
# Checkout the code.
- uses: actions/checkout@v3
# For the GitVersion to execute successfully, we need the checkout to fetch all gistory for all tags and branches (with fetch-depth: 0).
with:
fetch-depth: 0
# Use the build-addin action.
- uses: ./.github/actions/build-addin
with:
build_msi: ${{ inputs.build_msi }}