Merge pull request #652 from scalameta/update/sbt-ci-release-1.5.12 #516
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: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: git fetch --unshallow | |
- name: Publish ${{ github.ref }} | |
run: | | |
sbt ci-release | |
sbt docs/docusaurusPublishGhpages | |
env: | |
GIT_USER: [email protected] | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }} | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} |