Skip to content

0.1.0-alpha14

0.1.0-alpha14 #20

Workflow file for this run

name: Publish
on:
release:
# We'll run this workflow when a new GitHub release is created
types: [published]
jobs:
publish:
name: Release build and publish
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
- name: Build Annotations
run: ./gradlew library:annotations:assemble
- name: Build Core
run: ./gradlew library:core:assemble
- name: Build Query
run: ./gradlew library:query:assemble
- name: Build Specs
run: ./gradlew library:specs:assemble
- name: Build Processor
run: ./gradlew library:processor:assemble
- name: Build Compiler
run: ./gradlew library:compiler:assemble
# Runs upload, and then closes & releases the repository
- name: Publish to MavenCentral
run: ./gradlew publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}