Skip to content

Commit

Permalink
Simplify deploy-alpha workflow
Browse files Browse the repository at this point in the history
Combine build, test, and publish steps into a single action, removing redundant code and improving efficiency. This change ensures all necessary tasks are completed in one run, streamlining the deployment process to the alpha channel.
  • Loading branch information
cortiz committed Sep 6, 2024
1 parent c9908f3 commit 529ca41
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/deploy-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,12 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Run tests
run: ./gradlew test

publish:
if: startsWith(github.ref, 'refs/tags/alpha')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Publish Plugin
run: ./gradlew publishPlugin
run: ./gradlew build test publishPlugin
env:
PLUGIN_REPO: ${{ secrets.PLUGIN_REPO }}
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
CHANNEL: alpha
CHANNEL: alpha

0 comments on commit 529ca41

Please sign in to comment.