Skip to content

Merge pull request #229 from bishabosha/patch-4 #80

Merge pull request #229 from bishabosha/patch-4

Merge pull request #229 from bishabosha/patch-4 #80

Workflow file for this run

name: publish
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch --prune origin main
- uses: coursier/cache-action@v6.4
- uses: coursier/setup-action@v1.3
with:
jvm: 8
apps: "sbt"
- run: .github/scripts/gpg-setup.sh
env:
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
- name: Publish
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- run: cs launch scala-cli:1.0.0-RC1 --main-class scala.cli.ScalaCli --jvm 17 -- .github/scripts/generate-readme.sc
- uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
file_pattern: README.md
commit_message: Update README.md
branch: main
commit_author: Github Actions <actions@github.com>