-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (30 loc) · 1.05 KB
/
publish_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/actions/setup-gradle@v4
- 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 }}