44 lines
867 B
YAML
44 lines
867 B
YAML
name: build-msi (windows)
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- prereleased
|
|
push:
|
|
branches:
|
|
- master
|
|
- releases/**
|
|
paths:
|
|
- windows/installer/*.wxs
|
|
- .github/workflows/ci-windows-build-msi.yml
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- releases/**
|
|
paths:
|
|
- windows/installer/*.wxs
|
|
- .github/workflows/ci-windows-build-msi.yml
|
|
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: windows-2019
|
|
steps:
|
|
- name: Set up Go 1.20
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.20.1
|
|
id: go
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Build
|
|
run: make windows_installer
|
|
- name: Upload MSI
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: crowdsec*msi
|
|
name: crowdsec.msi
|