Skip to content

Commit

Permalink
workflow: upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Dec 13, 2021
1 parent 742fd53 commit abb18da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/hillu/local-log4j-vuln-scanner

go 1.15
go 1.11

0 comments on commit abb18da

Please sign in to comment.