Skip to content

Commit

Permalink
Feature/devops build (#5)
Browse files Browse the repository at this point in the history
* feat(maven-build): ci-cd to push to maven central

* update secret configuration

* update secret configuration

* Use sbt in place of maven

* remove unnecessary secrets

---------

Co-authored-by: Seun Soyinka <[email protected]>
  • Loading branch information
Seun0925 and Seun Soyinka authored Aug 19, 2024
1 parent b6b984d commit 89685f5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sbt-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build & Publish

on: workflow_dispatch

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup JDK And SBT
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
cache: "sbt"

- name: Test
run: sbt test

- name: Publish to Maven Repository
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
PGP_SECRET: ${{ secrets.GPG_SECRET }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

- name: Publish to GitHub Packages
run: sbt publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }

0 comments on commit 89685f5

Please sign in to comment.