Improve transition source error msg, add api for msg string #251
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
| # (c) https://github.com/MontiCore/monticore | |
| name: Deploy Snapshot | |
| concurrency: # run this test workflow only once per "branch" | |
| group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: # run this pipeline on every push | |
| paths-ignore: | |
| - "*.md" # do not run this pipeline if the only change was to markdown files | |
| branches: [ "dev" ] # Only run on the default branch | |
| repository_dispatch: # and on request of upstream projects | |
| types: [ trigger_after_upstream_deploy ] | |
| env: | |
| GRADLE_VERSION: 7.6 # Gradle version used | |
| GRADLE_CLI_OPTS: "-Pci --build-cache --refresh-dependencies " # CLI options passed to Gradle | |
| GRADLE_BUILD_ACTION_CACHE_KEY_JOB: "test-cache-${{ github.head_ref }}.${{ github.sha }}" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project sources | |
| uses: actions/checkout@v4 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: ${{env.GRADLE_VERSION}} | |
| - name: Gradle build | |
| run: gradle build ${{env.GRADLE_CLI_OPTS}} | |
| deploy: | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.ref == 'refs/heads/dev' | |
| steps: | |
| - name: Checkout project sources | |
| uses: actions/checkout@v4 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: ${{env.GRADLE_VERSION}} | |
| - name: Gradle Publish | |
| run: gradle publish ${{env.GRADLE_CLI_OPTS}} -PmavenPassword=${{ secrets.SE_NEXUS_PASSWORD }} -PmavenUser=${{ secrets.SE_NEXUS_USER }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |