fix: add missing build-common version in gradle-plugin dependency #1
Workflow file for this run
This file contains hidden or 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 build-common | |
| on: | |
| push: | |
| tags: ['build-common-v*'] | |
| workflow_dispatch: | |
| jobs: | |
| build-common-maven-central: | |
| name: Publish build-common to Maven Central | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Make gradlew executable | |
| run: chmod +x gradlew | |
| - name: Extract version from tag | |
| id: version | |
| run: | | |
| if [[ "$GITHUB_REF" == refs/tags/build-common-v* ]]; then | |
| echo "VERSION=${GITHUB_REF_NAME#build-common-v}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Build | |
| run: ./gradlew :python-embed-build-common:build${{ steps.version.outputs.VERSION && format(' -PreleaseVersion={0}', steps.version.outputs.VERSION) || '' }} | |
| - name: Publish to Maven Central | |
| run: ./gradlew :python-embed-build-common:publishToMavenCentral --no-configuration-cache${{ steps.version.outputs.VERSION && format(' -PreleaseVersion={0}', steps.version.outputs.VERSION) || '' }} | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_IN_MEMORY_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }} | |
| - name: Create GitHub Release | |
| if: steps.version.outputs.VERSION != '' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "python-embed-build-common v${{ steps.version.outputs.VERSION }}" | |
| generate_release_notes: true |