Skip to content

Commit ac63445

Browse files
authored
Update maven.yml
1 parent 568bc62 commit ac63445

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/maven.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,30 @@ jobs:
2929
- name: Run findSecBugs scan
3030
run: |
3131
chmod +x ./findsecbugs-cli-1.10.1/findsecbugs.sh
32-
./findsecbugs-cli-1.10.1/findsecbugs.sh -progress -html -output report.htm ./JavaVulnerableLab.war
32+
./findsecbugs-cli-1.10.1/findsecbugs.sh -progress -html -output report.htm ./JavaVulnerableLab.war
33+
- name: Retrieve version
34+
run: |
35+
VERSION=$(git rev-parse --short "$GITHUB_SHA")
36+
echo ::set-env name=TAG_NAME::$VERSION
37+
- name: Create Release
38+
id: create_release
39+
uses: actions/create-release@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
tag_name: ${{ env.TAG_NAME }}
44+
release_name: Release ${{ env.TAG_NAME }}
45+
body: |
46+
Reshift Intellij Plugin ${{ env.TAG_NAME }}
47+
draft: false
48+
prerelease: false
49+
- name: Upload Release Asset
50+
id: upload-release-asset
51+
uses: actions/upload-release-asset@v1
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
with:
55+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
56+
asset_path: ./report.htm
57+
asset_name: findsecbugs-report-${{ env.TAG_NAME }}.htm
58+
asset_content_type: text/html

0 commit comments

Comments
 (0)