Update to new runner label syntax #58
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
# GitHub Action Workflow for building a new commit to the primary repo branch and publishing a new release to beta. | |
# | |
# Workflow is triggered on pushes. Beta publish job runs conditionally if pushed to master. | |
# | |
# Additional Docs: | |
# - GitHub Actions: https://help.github.com/en/actions | |
name: build-master | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
jobs: | |
# Build and test plugin and provide artifact. | |
build: | |
name: Build | |
runs-on: | |
- codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} | |
- image:arm-3.0 | |
- instance-size:large | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- uses: gradle/actions/setup-gradle@v4 | |
# Build artifact using buildPlugin Gradle task | |
- name: Build Plugin | |
run: ./gradlew build | |
# Build artifact using buildPlugin Gradle task | |
- name: Build Plugin | |
run: ./gradlew buildPlugin | |
# Run intellij:verifyPlugin task. | |
- name: Verify Plugin | |
run: ./gradlew verifyPlugin | |
publish-beta: | |
needs: build | |
runs-on: | |
- codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} | |
- image:arm-3.0 | |
- instance-size:large | |
if: github.repository == 'amazon-ion/ion-intellij-plugin' && github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- uses: gradle/actions/setup-gradle@v4 | |
# Publish plugin to beta channel | |
- name: Publish Beta Plugin | |
env: | |
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} | |
PUBLISH_CHANNEL: beta | |
run: ./gradlew --stacktrace publishPlugin |