Skip to content

Release

Release #41

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_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_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_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_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 }}