Merge pull request #68 from copper-leaf/dev #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On pushes to main, run tests on all supported platforms. If all tests pass, then publish release artifacts and | ||
# update Orchid documentation site. | ||
name: 'Push to `main` (Create Release)' | ||
on: | ||
push: | ||
branches: ['main'] | ||
jobs: | ||
publishArtifactsOnMacOs: | ||
Check failure on line 11 in .github/workflows/push_main.yml GitHub Actions / Push to `main` (Create Release)Invalid workflow file
|
||
runs-on: 'macos-latest' | ||
needs: ['testOnAll'] | ||
env: | ||
GITHUB_ACTOR: '${{ github.actor }}' | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
OSSRH_USERNAME: '${{ secrets.OSSRH_USERNAME }}' | ||
OSSRH_PASSWORD: '${{ secrets.OSSRH_PASSWORD }}' | ||
STAGING_PROFILE_ID: '${{ secrets.STAGING_PROFILE_ID }}' | ||
SIGNING_KEY_ID: '${{ secrets.SIGNING_KEY_ID }}' | ||
SIGNING_KEY: '${{ secrets.SIGNING_KEY }}' | ||
SIGNING_PASSWORD: '${{ secrets.SIGNING_PASSWORD }}' | ||
JB_SIGNING_KEY: '${{ secrets.JB_SIGNING_KEY }}' | ||
JB_CHAIN: '${{ secrets.JB_CHAIN }}' | ||
JB_PASSPHRASE: '${{ secrets.JB_PASSPHRASE }}' | ||
JB_MARKETPLACE_TOKEN: '${{ secrets.JB_MARKETPLACE_TOKEN }}' | ||
steps: | ||
- uses: 'actions/checkout@v3' | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 # all commit history and tags | ||
- name: 'Set up JDK 17' | ||
uses: 'actions/setup-java@v2' | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: 'Assemble Artifacts' | ||
run: './gradlew assemble --stacktrace -Prelease -PorchidEnvironment=prod' | ||
- name: 'Publish IDEA Plugin' | ||
run: './gradlew :ballast-idea-plugin:buildPlugin :ballast-idea-plugin:publishPlugin --stacktrace -Prelease -PorchidEnvironment=prod' | ||
- name: 'Open Sonatype Staging Repository' | ||
run: './gradlew openSonatypeStagingRepository --no-configuration-cache --stacktrace -Prelease -PorchidEnvironment=prod' | ||
- name: 'Publish Artifacts' | ||
run: './gradlew publishAllPublicationsToMavenCentralRepository --stacktrace -Prelease -PorchidEnvironment=prod' | ||
- name: 'Build example Compose Web site' | ||
run: './gradlew :examples:web:build --stacktrace -Prelease -PorchidEnvironment=prod' | ||
- name: 'Publish Documentation' | ||
run: './gradlew :docs:publish --stacktrace --no-configuration-cache -Prelease -PorchidEnvironment=prod' | ||
- name: 'Close Sonatype Staging Repository' | ||
run: './gradlew closeSonatypeStagingRepository --no-configuration-cache --stacktrace -Prelease -PorchidEnvironment=prod' |