Skip to content

Radiant Factory

Radiant Factory #42

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Publish to Sonatype
run: ./gradlew -Pversion=${GITHUB_REF:11} publish
env:
ORG_GRADLE_PROJECT_ossrhToken: ${{ secrets.OSSRH_TOKEN }}
ORG_GRADLE_PROJECT_ossrhTokenPassword: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Release to Sonatype
run: ./gradlew -Pversion=${GITHUB_REF:11} closeAndReleaseRepository
env:
ORG_GRADLE_PROJECT_ossrhToken: ${{ secrets.OSSRH_TOKEN }}
ORG_GRADLE_PROJECT_ossrhTokenPassword: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
site:
name: Publish website
needs: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- name: Publish site
run: ./gradlew -Pversion=${GITHUB_REF:11} -Penv=prod :site:orchidDeploy
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}