From c74d19415d4a7b1d33e5c17d9fcb923c6b448748 Mon Sep 17 00:00:00 2001 From: Lukas Ruegner Date: Fri, 5 Jan 2024 01:06:50 +0100 Subject: [PATCH] wip: gh-action for publishing --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..845699f1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish + +on: workflow_dispatch + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + if: github.repository == 'SMILEY4/ktor-swagger-ui' + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: 'gradle' + + - name: Build + uses: gradle/gradle-build-action@v2.7.0 + with: + arguments: build + + - name: Publish + run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache