aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.gq>2023-05-19 17:19:06 -0400
committerPandaNinjas <admin@malwarefight.gq>2023-05-19 17:19:06 -0400
commitf6b449e65d050b321abf0e54826ec48c0d993b2a (patch)
tree33f0a244dd1a37ccf557c08b0ddb0f1677709ce5 /.github/workflows
parentd30a5775fab3f4e8968e4066a5e59a4b953d8870 (diff)
parentf1b1c43ba43f78c8cf86be2c32593131054af089 (diff)
downloadNoSession-f6b449e65d050b321abf0e54826ec48c0d993b2a.tar.gz
NoSession-f6b449e65d050b321abf0e54826ec48c0d993b2a.tar.bz2
NoSession-f6b449e65d050b321abf0e54826ec48c0d993b2a.zip
fix merge conflict
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/gradle.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index b451daa..f78d4fd 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -28,13 +28,25 @@ jobs:
with:
java-version: '8'
distribution: 'corretto'
+ - name: Add the release signing secret key
+ if: github.ref_name == 'main'
+ run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
+ env:
+ GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: Build with Gradle
- uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
+ uses: gradle/gradle-build-action@6778644d759ada84c71d6abc2f6fd7e328c600ab
with:
arguments: build
+
+ - name: Sign the binary
+ if: github.ref_name == 'main'
+ run: gpg --detach-sign -a ./build/libs/*.jar
+ env:
+ GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
+
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.1
with:
# Artifact name
- path: ./build/libs/*.jar
+ path: ./build/libs/