Merge pull request #571 from usefulness/agp_8_4_0 #36
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: Publish Project to Gradle Plugin Portal | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'usefulness/easylauncher-gradle-plugin' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Write Gradle build properties to `~/.gradle/gradle.properties` | |
run: | | |
mkdir -p ~/.gradle | |
printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties | |
shell: bash | |
- uses: gradle/gradle-build-action@v3 | |
- run: ./gradlew assemble | |
- name: Publish to Gradle Plugin Portal | |
run: ./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.gradle_publish_key }} -Pgradle.publish.secret=${{ secrets.gradle_publish_secret }} | |
- name: Publish to Github Package Registry | |
run: ./gradlew publish --continue || true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |