Update version go 1.0.18 #43
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: Gradle Plugin CI | |
on: | |
push: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Compile Plugin and check example | |
working-directory: example | |
# building the example also builds the plugin | |
run: ./gradlew build | |
- name: Login to Gradle Plugin Portal | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GRADLE_CONFIG: ${{ secrets.GRADLE_CONFIG }} | |
run: echo "$GRADLE_CONFIG" > ~/.gradle/gradle.properties | |
- name: Publish Plugin | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
MAVEN_USERNAME: ${{ vars.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
run: ./gradlew publish publishPlugins | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 |