Skip to content

Commit adc8402

Browse files
committed
Updated github actions
1 parent 5d38362 commit adc8402

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ jobs:
3434
uses: gradle/actions/setup-gradle@v4
3535
with:
3636
cache-read-only: ${{ !((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref_name == 'master' || github.ref_name == 'main' || startsWith(github.ref_name, 'v'))) }}
37+
- name: Restore gradle.properties
38+
env:
39+
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
40+
shell: bash
41+
run: |
42+
mkdir -p ~/.gradle/
43+
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
44+
echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
45+
- name: Restore gpg key
46+
env:
47+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
48+
shell: bash
49+
run: |
50+
mkdir /home/runner/.gnupg
51+
echo -n "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > /home/runner/.gnupg/secring.gpg
3752
- name: Build Project
3853
timeout-minutes: 35
3954
env:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
mkdir /home/runner/.gnupg
4242
echo -n "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > /home/runner/.gnupg/secring.gpg
4343
- name: Execute Gradle publish
44-
run: ./gradlew build --scan --no-daemon --console=plain
44+
run: ./gradlew build publish --scan --no-daemon --console=plain
4545
- name: Upload test reports
4646
uses: actions/upload-artifact@v4
4747
if: always()

0 commit comments

Comments
 (0)