bf/.forgejo/workflows/publish.yml

28 lines
665 B
YAML
Raw Normal View History

2024-03-12 20:20:19 +00:00
name: Maven release
on:
push:
branches:
- main
jobs:
build:
2024-03-12 20:23:12 +00:00
runs-on: docker
2024-03-12 20:20:19 +00:00
steps:
- uses: actions/checkout@v2
- name: Set up JDK
2024-03-12 20:32:01 +00:00
uses: https://github.com/actions/setup-java@v1
2024-03-12 20:20:19 +00:00
with:
2024-03-19 11:04:18 +00:00
java-version: 11
2024-03-12 20:20:19 +00:00
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and publish with gradle
2024-03-12 20:32:01 +00:00
uses: https://github.com/gradle/gradle-build-action@v2
2024-03-12 20:20:19 +00:00
with:
arguments: publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}