Skip to content

Commit

Permalink
chore: update gh-pages deploy action to only trigger on release + add…
Browse files Browse the repository at this point in the history
… latest
  • Loading branch information
balzss committed Oct 18, 2024
1 parent f8cb7f0 commit beece6d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit beece6d

Please sign in to comment.