Files
nolij 23a201eebd
build-snapshot / build (push) Successful in 1m56s
disable config cache properly for CI
2025-03-10 22:22:59 -04:00

33 lines
798 B
YAML

# Used when a commit is pushed to the repository
name: build-snapshot
on:
push:
branches:
- master
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Build artifacts
run: ./gradlew build -Prelease_channel=RELEASE --no-configuration-cache
- name: Publish artifacts
run: ./gradlew publish -Prelease_channel=RELEASE --no-configuration-cache