tuddylib/.forgejo/workflows/publish.yml
TudbuT e559762bf7
All checks were successful
/ Build & Publish (push) Successful in 50s
add maven stuff
2024-06-25 03:56:25 +02:00

27 lines
622 B
YAML

on: [ push ]
jobs:
publish:
name: Build & Publish
runs-on: 'docker'
permissions:
packages: write
steps:
- name: Setup Java
uses: https://github.com/actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 8
- name: Checkout
uses: actions/checkout@v4
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- name: Publish
run: TL_VERSION=$(git describe --always) ./gradlew publish
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}