Skip to content

Commit

Permalink
Add a configuration to publish from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tototoshi committed Jun 30, 2024
1 parent 7e417de commit c29ddc7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- '*.*.*'

jobs:
releases:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 8
distribution: adopt
- uses: coursier/cache-action@v6
- name: Setup GPG
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Publish to Sonatype
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: sbt clean +test publishSigned sonatypeRelease

This comment has been minimized.

Copy link
@xuwei-k

xuwei-k Jun 30, 2024

Collaborator

publishSigned => + publishSigned ? 🤔

0 comments on commit c29ddc7

Please sign in to comment.