Publish package to the Github Repository #2
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 the Github Repository | |
on: | |
workflow_dispatch: | |
jobs: | |
publish-plugin: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Publish package | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: plugin:publishMavenPublicationToGithubRepository -PisCi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish-core-extensions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Publish package | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: plugin-core-extensions:publishMavenPublicationToGithubRepository -PisCi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish-extensions-amplitude: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Publish package | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: plugin-extension-amplitude:publishMavenPublicationToGithubRepository -PisCi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |