Update github workflow/actions. #5
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
| # Build GitScope Pro using JBR 21 | |
| name: Build IntelliJ Plugin with JBR 21 | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Download JetBrains Runtime (JBR 21) | |
| run: | | |
| wget https://cache-redirector.jetbrains.com/intellij-jbr/jbr_jcef-21.0.8-linux-x64-b1038.68.tar.gz -O jbr.tar.gz | |
| mkdir -p jbr | |
| tar -xzf jbr.tar.gz -C jbr --strip-components=1 | |
| - name: Set JAVA_HOME to JBR 21 | |
| run: echo "JAVA_HOME=${{ github.workspace }}/jbr" >> $GITHUB_ENV | |
| - name: Verify Java version | |
| run: $JAVA_HOME/bin/java -version | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v5 | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build Plugin | |
| run: ./gradlew buildPlugin | |
| - name: Upload Plugin Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: plugin-artifact | |
| path: build/distributions/*.zip |