Scheduled Nightly Release #589
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: Scheduled Nightly Release | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' # 1200 UTC | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 | |
if: ${{ github.repository_owner == 'vuetifyjs' }} | |
strategy: | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
branch: ['master', 'dev', 'next', 'v2-stable', 'v2-dev'] | |
include: | |
- branch: 'master' | |
tag: 'latest' | |
- branch: 'dev' | |
tag: 'dev' | |
- branch: 'next' | |
tag: 'next' | |
- branch: 'v2-stable' | |
tag: 'v2-stable' | |
- branch: 'v2-dev' | |
tag: 'v2-dev' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branch }} | |
fetch-depth: 0 | |
- run: | | |
last=$(git show -s --format=%ct HEAD) | |
now=$(date +%s) | |
diff=$(($now - $last)) | |
if [ $diff -gt 86400 ]; then | |
echo "Last commit was more than 24 hours ago, skipping release" | |
exit 1 | |
fi | |
- run: echo "RELEASE_ID=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
- uses: ./.github/actions/nightly-release | |
with: | |
checkout-repo: ${{ github.repository }} | |
checkout-ref: ${{ matrix.branch }} | |
release-id: ${{ matrix.branch }}.${{ env.RELEASE_ID }} | |
npm-tag: ${{ matrix.tag }} | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- uses: actions/checkout@v4 | |
percy: | |
name: Visual regression tests | |
runs-on: ubuntu-24.04 | |
if: ${{ github.repository_owner == 'vuetifyjs' }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- run: | | |
last=$(git show -s --format=%ct HEAD) | |
now=$(date +%s) | |
diff=$(($now - $last)) | |
if [ $diff -gt 86400 ]; then | |
echo "Last commit was more than 24 hours ago, skipping tests" | |
exit 1 | |
fi | |
- uses: vuetifyjs/setup-action@master | |
- run: echo "COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV | |
- run: pnpm test:percy | |
working-directory: ./packages/vuetify | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
PERCY_BRANCH: master | |
PERCY_TARGET_BRANCH: master | |
PERCY_COMMIT: ${{ env.COMMIT }} |