Skip to content

Prepared the first release of textvalue #4

Prepared the first release of textvalue

Prepared the first release of textvalue #4

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
# Release tag format is v[version]
# For example: v1.3.5
tags: [ 'v*' ]
pull_request:
branches: [ main ]
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run Check
run: ./gradlew check -xlint
- name: Run Detekt
run: ./gradlew detektAll detektReleaseAll
publish:
name: Publish
needs: check
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run Publish
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}