Skip to content

0.2.1 sovity

0.2.1 sovity #2

Workflow file for this run

on:
push:
branches: [ main ]
release:
types: [ published ]
pull_request:
branches: [ "main", "version/0.2.1" ]
jobs:
build-gradle-project:
name: Build Gradle Project
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
packages: write
steps:
- name: "Gradle: Build"
uses: gradle/gradle-build-action@v2.10.0
with:
arguments: build check ${{ env.GRADLE_ARGS }}
- name: "Gradle: Publish (Main & Release Only)"
uses: ./.github/actions/run-tests
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
arguments: publish ${{ env.GRADLE_ARGS }}
command: ./gradlew publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}