diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8619814058..2ac45cc37c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,8 @@ on: - v9_maintenance workflow_dispatch: jobs: - deploy-docs: + deploy-release: + if: startsWith(github.event.head_commit.message, 'chore(release)') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -41,3 +42,18 @@ jobs: target-folder: ${{ steps.set-build-dir.outputs.deploy_dir }} clean-exclude: pr-preview force: false + deploy-latest: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: + - uses: actions/checkout@v4 + - run: npm ci && npm run bootstrap + - name: Build docs-app + run: npm run build:docs + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: ./packages/__docs__/__build__ + branch: gh-pages + target-folder: latest + force: false