Skip to content

feat: switch to UUIDv7 (#21) #77

feat: switch to UUIDv7 (#21)

feat: switch to UUIDv7 (#21) #77

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 }} ; echo ${GITHUB_REF}
- name: Check
run: ./gradlew check
- name: "Gradle: Publish"
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/sovity/') }}
run: |
if [[ "$GITHUB_REF" == "refs/tags/v"* ]]; then
GRADLE_ARGS="-Pversion=${GITHUB_REF#refs/tags/v}"
./gradlew --parallel "$GRADLE_ARGS" publishAllPublicationsToAzurePackagesRepository
elif [[ "$GITHUB_REF" == "refs/heads/sovity/"* ]]; then
GRADLE_ARGS="-Pversion=${GITHUB_REF#refs/heads/sovity/}.0.$(date '+%Y%m%d.%H%M%S')"
./gradlew --parallel "$GRADLE_ARGS" publishAllPublicationsToAzureTestPackagesRepository
fi
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}