Skip to content

main-release

main-release #12

Workflow file for this run

# main release workflow for ktvn.
# build and tests the code and if successful publishes the package.
name: main-release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
PUBLISH_URL: ${{ vars.PUBLISH_URL }}
PUBLISH_USERNAME: ${{ vars.PUBLISH_USERNAME }}
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Execute Gradle build and test and then publish
run: |
sh ./gradlew build test :ktvn:publish -PpublishUrl=${PUBLISH_URL} -PpublishUsername=${PUBLISH_USERNAME} -PpublishPassword=${PUBLISH_PASSWORD}