Release #35
Workflow file for this run
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 | |
# Adapted from https://github.com/beautiful-scala/scalastyle/blob/master/.github/workflows/release.yml | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
cache: sbt | |
- name: Prepare PGP | |
env: | |
PGP_SECRET: ${{ secrets.PgpSecret }} | |
run: | | |
gpg --version | |
mkdir ~/.gnupg && chmod 700 ~/.gnupg | |
echo use-agent >> ~/.gnupg/gpg.conf | |
echo pinentry-mode loopback >> ~/.gnupg/gpg.conf | |
echo allow-loopback-pinentry >> ~/.gnupg/gpg-agent.conf | |
chmod 600 ~/.gnupg/* | |
echo RELOADAGENT | gpg-connect-agent | |
echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes | |
- name: Publish to Maven Central | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SonatypeUsername }} | |
SONATYPE_PASSWORD: ${{ secrets.SonatypePassword }} | |
PGP_PASSPHRASE: ${{ secrets.PgpPassphrase }} | |
run: sbt "project mobilePushRoot" releaseArtifacts |