Merge pull request #69 from fourlastor-alexandria/roast-1-1-0 #12
Workflow file for this run
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 package to Maven | |
on: | |
# Automatically on every tag starting with v | |
push: | |
tags: | |
- v* | |
# Manual dispatch for testing | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Publish package | |
run: ./gradlew publishPlugins | |
working-directory: ./construo | |
env: | |
GRADLE_PUBLISH_KEY: ${{ secrets.ORG_GRADLE_PROJECT_PLUGIN_PORTAL_KEY }} | |
GRADLE_PUBLISH_SECRET: ${{ secrets.ORG_GRADLE_PROJECT_PLUGIN_PORTAL_SECRET }} |