Merge pull request #136 from kdbinsidebrains/improvements2 #99
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 Plugin | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'version.properties' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@main | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Setup libsecret-1 | |
| run: sudo apt-get install libsecret-1-dev | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@main | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Publish with Gradle | |
| env: | |
| KDBINSIDEBRAINS_RELEASE_PLUGIN_TOKEN: ${{secrets.KDBINSIDEBRAINS_RELEASE_PLUGIN_TOKEN}} | |
| run: ./gradlew publishPlugin |