setup for maven publish via github action #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: main | |
tags: ["*"] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Metakit repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Tessellation repo | |
uses: actions/checkout@v4 | |
with: | |
repository: Constellation-Labs/tessellation | |
ref: v2.12.0 | |
path: tessellation | |
- name: Setup Java, Scala, and SBT | |
uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: [email protected] | |
- name: Build and publish Tessellation artifacts locally | |
working-directory: tessellation | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: sbt publishLocal | |
- name: Build and publish Metakit artifacts to Maven | |
run: sbt ci-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |