Nightly build #188
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
| name: Nightly build | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' | |
| push: | |
| tags: | |
| - 'tip' | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| jobs: | |
| nightly: | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: write | |
| name: Build nightly | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Tag ref | |
| run: | | |
| # https://github.com/actions/checkout/pull/1707 | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git tag -fa tip -m "Continuous Release" ${GITHUB_SHA} | |
| git push --force origin tip | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'oracle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build with Gradle | |
| run: ./gradlew :migration-app:buildDistZip | |
| - name: Get version | |
| run: | | |
| version=$(./gradlew -q :migration-app:printVersion) | |
| echo "MIG_VERSION=$version" >> "$GITHUB_ENV" | |
| # - name: Publish artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: migration-app-${{ env.MIG_VERSION }} | |
| # path: migration-app/build/tmp/dist | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| prerelease: true | |
| draft: false | |
| removeArtifacts: true | |
| tag: tip | |
| name: Migration Tip (Nightly) | |
| artifacts: migration-app/build/dist/*.zip | |
| body: | | |
| This is a branch tip build of migration-stack. | |
| We recommend using a tagged release for stability. |