Skip to content

Revive Sphinx integration (#214) #23

Revive Sphinx integration (#214)

Revive Sphinx integration (#214) #23

Workflow file for this run

name: Release
on:
push:
branches:
- main
- release-*
tags: ["v*"]
permissions:
contents: read
jobs:
release:
name: Release to Sonatype
if: github.event.repository.fork == false
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- name: Set up JDK 11
uses: coursier/setup-action@v1.3.0
with:
jvm: temurin:1.11.0.17
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
# https://github.com/sbt/sbt-site/issues/200
# documentation:
# name: Release Documentation
# if: github.event.repository.fork == false
# runs-on: ubuntu-22.04
# permissions:
# contents: write
# steps:
# - name: Checkout
# uses: actions/checkout@v3.1.0
# with:
# fetch-depth: 0
#
# - name: Cache Coursier cache
# uses: coursier/cache-action@v6.4.0
#
# - name: Set up JDK 11
# uses: coursier/setup-action@v1.3.0
# with:
# jvm: temurin:1.11.0.17
#
# - name: sbt ghpages
# run: |-
# git config --global user.name "sbt-site bot"
# git config --global user.email "sbt-site@scala-sbt.org"
# sbt ghpagesPushSite
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}