Upgrade to latest sbt-scalafmt and scalafmt (#1596) #41
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 | |
on: | |
push: | |
tags: ["*"] | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# setup build environment | |
- uses: coursier/cache-action@v5 | |
- uses: olafurpg/setup-scala@v12 | |
- run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
# this setup is all for the github pages deployment to work | |
- name: install sphinx | |
run: | | |
pip3 install --user sphinx sphinx_rtd_theme | |
which sphinx-build | |
- name: setup git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
- run: sbt ghpagesPushSite | |
# generate a github release | |
- name: Generate release changelog | |
id: changelog | |
uses: heinrichreimer/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
cacheFile: '.github-changelog-cache' | |
issues: true | |
issuesWoLabels: true | |
pullRequests: true | |
prWoLabels: true | |
unreleased: false | |
onlyLastTag: true | |
maxIssues: 100 | |
output: LATEST_RELEASE.md | |
- name: Read latest_release.md | |
id: release_changelog | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./LATEST_RELEASE.md | |
- name: Create Github Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ env.RELEASE_VERSION }} | |
body: ${{ steps.release_changelog.outputs.content }} | |
draft: false | |
prerelease: false |