From 1daaf6da70944e2a2fab40b7de89eac7548b38f0 Mon Sep 17 00:00:00 2001 From: yyz <55245002+yyzsec@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:28:25 +0800 Subject: [PATCH] config CICD Actions config CICD Actions --- .../workflows/gradle-build-and-release.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/gradle-build-and-release.yml diff --git a/.github/workflows/gradle-build-and-release.yml b/.github/workflows/gradle-build-and-release.yml new file mode 100644 index 0000000..46aae86 --- /dev/null +++ b/.github/workflows/gradle-build-and-release.yml @@ -0,0 +1,41 @@ +name: gradle-build-and-release + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: fatJar + + + - name: Release + id: release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/libs/burp-JS-Miner-all.jar + # setup in repo/Settings/Secrets and variables/Actions + token: ${{ secrets.MY_TOKEN }} + env: + USERNAME: ${{ github.actor }} + GITHUB_REPOSITORY: yyzsec/js-miner