Skip to content

GH-197 Handle default title/version through `openapi.info.title/versi… #166

GH-197 Handle default title/version through `openapi.info.title/versi…

GH-197 Handle default title/version through `openapi.info.title/versi… #166

# GitHub Actions workflow to automatically publish snapshot builds.
name: "Publish snapshots"
on:
push:
branches: [ "main" ]
env:
JAVA_VERSION: 17
jobs:
maven:
name: "Maven"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
- name: "Set up Java ${{ env.JAVA_VERSION }}"
uses: actions/setup-java@v3
with:
java-version: "${{ env.JAVA_VERSION }}"
distribution: "adopt"
- name: "Grant execute permission for gradlew"
run: chmod +x gradlew
- name: "Gradle publish"
uses: gradle/gradle-build-action@v2
with:
arguments: "clean build publishAllPublicationsToReposilite-repositoryRepository"
env:
MAVEN_NAME: ${{ secrets.MAVEN_NAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}