Bump typescript from 5.1.6 to 5.2.2 #3486
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 Build | |
on: | |
push: | |
concurrency: build-${{ github.ref }} | |
jobs: | |
publish_vars: | |
runs-on: ubuntu-latest | |
outputs: | |
publish: ${{ steps.publish_vars.outputs.release != 'true' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/4.')) }} | |
repo: ${{ steps.publish_vars.outputs.repo }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get publishing variables | |
id: publish_vars | |
uses: enonic/release-tools/publish-vars@master | |
env: | |
PROPERTIES_PATH: './gradle.properties' | |
build: | |
runs-on: ubuntu-latest | |
needs: publish_vars | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build with Gradle | |
run: ./gradlew build | |
- uses: codecov/codecov-action@v3 | |
- name: Publish | |
if: needs.publish_vars.outputs.publish == 'true' | |
run: ./gradlew publish -PrepoKey=${{ needs.publish_vars.outputs.repo }} -PrepoUser=${{ secrets.ARTIFACTORY_USERNAME }} -PrepoPassword=${{ secrets.ARTIFACTORY_PASSWORD }} | |
dispatch: | |
needs: [ publish_vars, build ] | |
strategy: | |
matrix: | |
repo: ["enonic/app-admin-home", "enonic/app-applications", "enonic/app-users", "enonic/app-contentstudio" ] | |
runs-on: ubuntu-latest | |
if: needs.publish_vars.outputs.publish == 'true' | |
steps: | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
repository: ${{ matrix.repo }} | |
event-type: lib-admin-ui | |