Skip to content

Change branches to build #42

Change branches to build

Change branches to build #42

Workflow file for this run

on:
push:
branches: [ "sovity/**" ]
release:
types: [ published ]
pull_request:
branches: [ "sovity/**" ]
jobs:
build-gradle-project:
name: Build Gradle Project
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-build
- uses: ./.github/actions/run-tests
- name: Debug
run: echo ${{ github.ref }}
- name: "Gradle: Publish"
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/sovity/') }}
run: ./gradlew check publishAllPublicationsToGitHubPackagesRepository ${{ env.GRADLE_ARGS }}
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}