Changes for checking the global version for modify policy version sup… #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
GO_VERSION: "1.21.x" | |
jobs: | |
build: | |
runs-on: "windows-2019" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- 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 | |