chore: refactor build scripts #96
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
name: publish CodeArtifact plugin | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 'Validate wrapper' | |
uses: 'gradle/wrapper-validation-action@v3' | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
# https://github.com/gradle/actions/tree/main/setup-gradle | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Publish | |
env: | |
GRADLE_PUBLISH_KEY: '${{ secrets.PLUGIN_PORTAL_KEY }}' | |
GRADLE_PUBLISH_SECRET: '${{ secrets.PLUGIN_PORTAL_SECRET }}' | |
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.SIGNING_PASSWORD }} | |
run: ./gradlew publishPlugins --no-configuration-cache |