Skip to content

Commit

Permalink
chore: master/develop branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 11, 2024
1 parent fc85e4c commit 2fe5e13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-preview-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/workflows/ci-preview-deploy.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
name: Deploy PR
concurrency: preview-deploy-${{ github.ref }}
on:
push:
branches:
Expand Down Expand Up @@ -30,9 +30,9 @@ jobs:
mkdir .preview
mv ${{ github.ref_name }} .preview
- uses: crazy-max/ghaction-github-pages@v2
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
build_dir: .preview
target_branch: gh-pages
commit_message: 'Deploy to Github Pages [skip ci]'
jekyll: false
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .preview
keep_files: true
2 changes: 2 additions & 0 deletions .github/workflows/ci-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- reopened
- synchronize
- closed

jobs:
deploy-preview:
runs-on: ubuntu-latest
Expand All @@ -26,6 +27,7 @@ jobs:
install: true

- name: Build
if: github.event.action != 'closed'
run: |
yarn turbo run build-preview
yarn turbo run .:build-preview-move
Expand Down

0 comments on commit 2fe5e13

Please sign in to comment.