Skip to content

Merge pull request #474 from scalacenter/dependabot/github_actions/ac… #29

Merge pull request #474 from scalacenter/dependabot/github_actions/ac…

Merge pull request #474 from scalacenter/dependabot/github_actions/ac… #29

Workflow file for this run

name: Release
on:
push:
branches: [main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# fetches all tags, required to correctly set the version
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "adopt"
- uses: olafurpg/setup-gpg@v3
- uses: coursier/cache-action@v5
- name: Publish
run: sbt clean ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
CI_RELEASE: "; scalajs-bundler-linker/publishSigned; sbt-scalajs-bundler/publishSigned; sbt-web-scalajs-bundler/publishSigned"
CI_SNAPSHOT_RELEASE: "; scalajs-bundler-linker/publish; sbt-scalajs-bundler/publish; sbt-web-scalajs-bundler/publish"