Try fix task structures #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy releases to GitHub | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Import GPG key | |
run: | | |
echo "$GPG_SIGNING_KEY_PW" | gpg --batch --import --yes --passphrase-fd 0 <(echo -n "$GPG_SIGNING_KEY_B64" | base64 --decode) | |
env: | |
GPG_SIGNING_KEY_B64: ${{ secrets.GPG_PRIVATE_KEY_B64 }} | |
GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Setup GPG key information | |
run: | | |
mkdir -p ~/.gradle ~/.gnupg | |
echo "signing.gnupg.homeDir=/home/runner/.gnupg" >> ~/.gradle/gradle.properties | |
echo "signing.gnupg.executable=gpg" >> ~/.gradle/gradle.properties | |
echo "signing.gnupg.keyName=ABC48776" >> ~/.gradle/gradle.properties | |
echo "signing.gnupg.passphrase=${GPG_SIGNING_KEY_PW}" >> ~/.gradle/gradle.properties | |
env: | |
GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Build and release package | |
run: ./gradlew clean build githubRelease | |
env: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
RELEASE_GRADLE_PLUGIN_TOKEN: ${{ secrets.RELEASE_GRADLE_PLUGIN_TOKEN }} |