From abb18da13d1d4d6eb783199f68eeef5bb1911dbc Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Mon, 13 Dec 2021 11:47:30 +0100 Subject: [PATCH] workflow: upload artifact --- .github/workflows/go.yml | 11 +++++++++++ go.mod | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c29e15e..48967ad 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,10 +15,21 @@ jobs: - name: Build run: | + go version go build . GOOS=windows go build . GOOS=darwin go build -o local-log4j-vuln-scanner.macosx . + - name: Upload artifact + uses: actions/upload-artifact@v2 + if: startsWith(github.ref, 'refs/heads/') + with: + name: my-artifact + path: | + local-log4j-vuln-scanner + local-log4j-vuln-scanner.exe + local-log4j-vuln-scanner.macosx + - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/go.mod b/go.mod index 1eff58c..d196635 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/hillu/local-log4j-vuln-scanner -go 1.15 +go 1.11