bf/.forgejo/workflows/publish.yml
Ashhhleyyy f82be6d14f
Some checks failed
Maven release / build (push) Has been cancelled
chore: add CI
2024-03-12 20:20:19 +00:00

27 lines
656 B
YAML

name: Maven release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: github.com/actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and publish with gradle
uses: github.com/gradle/gradle-build-action@v2
with:
arguments: publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}