icecloak/.forgejo/workflows/publish.yml

36 lines
859 B
YAML
Raw Normal View History

name: Push plugin to maven
on:
release:
types:
- published
jobs:
build:
2024-07-03 00:15:34 +00:00
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-
- name: Set up JDK
2024-07-03 00:18:18 +00:00
uses: https://github.com/actions/setup-java@v1
with:
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and publish with gradle
run: ./gradlew publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}