Skip to content

Commit

Permalink
Merge pull request #24 from komamitsu/publish-workflow
Browse files Browse the repository at this point in the history
Add a workflow for publish
  • Loading branch information
komamitsu authored Jan 29, 2024
2 parents 2fd1593 + 57bca36 commit 0cefdd1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Apache Maven Central
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Publish to Apache Maven Central
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
# ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

0 comments on commit 0cefdd1

Please sign in to comment.