Repository navigation
Publish E2E CLI #7
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
| # Publish E2E CLI build as a GitHub Actions artifact | |
| # | |
| # On merge to main (or monthly refresh), builds the e2e-cli fat JAR | |
| # and uploads it as an artifact. Consumers download via the GitHub API | |
| # or dawidd6/action-download-artifact. | |
| name: Publish E2E CLI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'e2e-cli/**' | |
| - 'core/src/**' | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout SDK | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Build e2e-cli | |
| run: ./gradlew :e2e-cli:jar | |
| - name: Prepare artifact | |
| run: | | |
| mkdir -p artifact | |
| cp $(find e2e-cli/build/libs -name "e2e-cli-*.jar" | head -1) artifact/e2e-cli.jar | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-cli | |
| path: artifact/e2e-cli.jar | |
| retention-days: 90 |