Skip to content

upgrade scalafmt-native-action version #19

upgrade scalafmt-native-action version

upgrade scalafmt-native-action version #19

Workflow file for this run

name: Scala CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- uses: coursier/cache-action@v5
- uses: jrouly/scalafmt-native-action@v3
with:
version: 2.7.5
- run: csbt +test +scripted
release:
needs: [build]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- uses: coursier/cache-action@v5
- uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- run: csbt +publishSigned
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}