Skip to content

Commit

Permalink
revertd to previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed May 15, 2024
1 parent 6751d11 commit 75cb199
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Deploy PR Preview

name: Deploy PR previews
on:
pull_request:
types:
Expand All @@ -9,35 +8,19 @@ on:
- closed
branches:
- main

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

jobs:
deploy-preview:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
# Check out the repository
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3

# Install dependencies and build project
- name: Install dependencies and build
if: github.event.action=='opened'|| github.event.action=='reopened'|| github.event.action=='synchronize'
- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
yarn install
yarn build:pr:preview
# Deploy to GitHub Pages
- name: Deploy preview
if: github.event.action=='opened'|| github.event.action=='reopened'|| github.event.action=='synchronize'
uses: rossjrw/[email protected]
with:
source-dir: ./build/
action: deploy

# - name: Delete preview
# if: github.event.action == 'closed' || github.event.pull_request.merged
# uses: rossjrw/[email protected]
# with:
# source-dir: ./build/
# action: remove

0 comments on commit 75cb199

Please sign in to comment.