forked from microsoft/hcsshim
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.03 KB
/
release.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
45
46
47
name: Build & Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: "windows-2019"
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: ./.github/actions/setup-go
- run: go build ./cmd/dmverity-vhd
- run: go build ./cmd/dmverity-vhd
env:
GOOS: linux
GOARCH: amd64
- uses: actions/upload-artifact@v4
with:
name: binaries
path: |
dmverity-vhd.exe
dmverity-vhd
draft_release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: binaries
- name: Publish draft release
uses: softprops/[email protected]
with:
# This is to make sure that the release is not created if a non-rc tag is pushed
draft: true
generate_release_notes: true
files: |
dmverity-vhd.exe
dmverity-vhd