Skip to content

Commit

Permalink
wip: gh-action for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
SMILEY4 committed Jan 5, 2024
1 parent e93de6d commit 9e4ae08
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import Build_gradle.Meta.description
import Build_gradle.Meta.name
import Build_gradle.Meta.version
import com.vanniktech.maven.publish.SonatypeHost
import io.gitlab.arturbosch.detekt.Detekt

object Meta {
const val groupId = "io.github.smiley4"
const val artifactId = "ktor-swagger-ui"
const val version = "2.7.1"
const val version = "2.7.3-SNAPSHOT"
const val name = "Ktor Swagger-UI"
const val description = "Ktor plugin to document routes and provide Swagger UI"
const val licenseName = "The Apache License, Version 2.0"
Expand Down

0 comments on commit 9e4ae08

Please sign in to comment.