tuddylib/.forgejo/workflows/publish.yml

30 lines
661 B
YAML
Raw Normal View History

2024-06-25 03:32:03 +02:00
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
2024-06-25 05:53:38 +02:00
with:
fetch-depth: 0
2024-06-25 03:32:03 +02:00
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- name: Publish
2024-06-25 05:53:38 +02:00
run: TL_VERSION=$(git rev-list --count HEAD) ./gradlew publish
2024-06-25 03:32:03 +02:00
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}