Skip to content

Commit

Permalink
Update CI build to skip uploading beta release if running on a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Sep 14, 2022
1 parent c9122d6 commit 0042c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
needs: gradleValidation
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
product: [ "IC-2020.2", "IC-2021.1", "IC-2022.1" ]
max-parallel: 5
Expand Down Expand Up @@ -98,13 +99,15 @@ jobs:

# Publish plugin to beta channel
- name: Publish Beta Plugin
if: github.repository == 'amzn/ion-intellij-plugin'
env:
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
PUBLISH_CHANNEL: beta
run: ./gradlew --stacktrace publishPlugin

# Upload plugin artifact to make it available in the next jobs
- name: Upload artifact
if: github.repository == 'amzn/ion-intellij-plugin'
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.product }}-plugin-artifact
Expand Down

0 comments on commit 0042c16

Please sign in to comment.