Skip to content

internal: Fix the release script to use YYYY.MM.patch (#3807) #21

internal: Fix the release script to use YYYY.MM.patch (#3807)

internal: Fix the release script to use YYYY.MM.patch (#3807) #21

Workflow file for this run

name: Release Scala Native
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish_js:
name: Publish Scala Native
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Fetch all tags so that sbt-dynver can find the previous release version
fetch-depth: 0
- run: git fetch --tags -f
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup GPG
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: echo $PGP_SECRET | base64 --decode | gpg --import --batch --yes
- name: Build for Scala Native
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
run: ./sbt publishNativeSigned
- name: Release to Sonatype
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
run: SCALA_NATIVE=true ./sbt sonatypeBundleRelease