Skip to content

Commit 1daaf6d

Browse files
authored
config CICD Actions
config CICD Actions
1 parent 420c566 commit 1daaf6d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: gradle-build-and-release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '11'
21+
distribution: 'temurin'
22+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
23+
settings-path: ${{ github.workspace }} # location for the settings.xml file
24+
25+
- name: Build with Gradle
26+
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
27+
with:
28+
arguments: fatJar
29+
30+
31+
- name: Release
32+
id: release
33+
uses: softprops/action-gh-release@v1
34+
if: startsWith(github.ref, 'refs/tags/')
35+
with:
36+
files: build/libs/burp-JS-Miner-all.jar
37+
# setup in repo/Settings/Secrets and variables/Actions
38+
token: ${{ secrets.MY_TOKEN }}
39+
env:
40+
USERNAME: ${{ github.actor }}
41+
GITHUB_REPOSITORY: yyzsec/js-miner

0 commit comments

Comments
 (0)