# 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