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