Skip to content

Commit

Permalink
Add experimental signing step
Browse files Browse the repository at this point in the history
  • Loading branch information
williewillus committed Jun 9, 2023
1 parent f659272 commit a35a938
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Java CI

on: [push, pull_request]
on: [push]

jobs:
build:
Expand All @@ -14,7 +14,12 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/wrapper-validation-action@v1
- name: Validate gradlew integrity
uses: gradle/wrapper-validation-action@v1
- name: Import signing key
uses: actions/import-gpg@v2
with:
gpg_private_key: ${{ secrets.VIOLET_MOON_SIGNING_KEY }}
# - name: Cache
# uses: actions/cache@v2
# with:
Expand All @@ -28,12 +33,20 @@ jobs:
if: failure()
with:
path: '**/reports/pmd/main.xml'
- name: Archive Forge Binaries
# TODO: Both this find command as well as archiving with a glob below is a kludge,
# because github then compresses the folder before uploading it.
# Ideally we assemble the version number here in the github action and sign/archive
# the two release binaries specifically.
- name: Sign jars
run: |
find Forge/build/libs Fabric/build/libs -type f -name '*.jar' -not -name '*-sources.jar' \
-exec gpg --local-user "Violet Moon Signing Key" --armor --detach-sign {} \;
- name: Archive Forge Artifacts
uses: actions/upload-artifact@v2
with:
name: Forge
path: Forge/build/libs/*.jar
- name: Archive Fabric Binaries
- name: Archive Fabric Artifacts
uses: actions/upload-artifact@v2
with:
name: Fabric
Expand Down

0 comments on commit a35a938

Please sign in to comment.