Skip to content

Commit

Permalink
fix: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed May 6, 2024
1 parent 8aae82a commit a003324
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/build-deploy-and-preview.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,25 @@
# .github/workflows/preview.yml
name: Deploy PR previews

name: Deploy PR preview
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
branches: [main]

permissions:
contents: write
issues: write
pull-requests: write
id-token: write
pages: write
deployments: write

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- run: echo "PREVIEW_PATH=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"
- name: Install and Build
run: yarn install && yarn build

- name: Deploy PR Preview
uses: rossjrw/[email protected]
- uses: actions/checkout@v3
- run: yarn install && yarn build
env:
CI: false
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
token: ${{ secrets.AUTH_TOKEN}}
source-dir: ./dist/
source-dir: ./docs/public
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto

0 comments on commit a003324

Please sign in to comment.