Skip to content

build(deps): bump actions/upload-pages-artifact from 4 to 5 (#494) #7

build(deps): bump actions/upload-pages-artifact from 4 to 5 (#494)

build(deps): bump actions/upload-pages-artifact from 4 to 5 (#494) #7

Workflow file for this run

name: Release Scala.js
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish_js:
name: Publish Scala.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
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@v5
with:
distribution: 'zulu'
java-version: '23'
cache: sbt
- uses: actions/setup-node@v6
with:
node-version: '20'
- name: Setup GPG
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: echo $PGP_SECRET | base64 --decode | gpg --import --batch --yes
- name: Build for Scala.js
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
run: ./sbt publishJSSigned
- name: Release to Sonatype
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
run: ./sbt sonaRelease