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 c74d194
Showing 1 changed file with 30 additions and 0 deletions.
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

0 comments on commit c74d194

Please sign in to comment.