Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Set up JDK
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'zulu'
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/scala-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: scala-central-publish

on:
push:
branches:
- main
tags:
- "*.*.*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # sbt-git requires the full history to determine the version

- name: Set up JDK
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'zulu'

- name: Run the release of core
if: startsWith(github.ref, 'refs/tags/')
run: build/sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}