diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4f25d36..655100b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,24 +1,24 @@ -# # .github/workflows/preview.yml -# name: Deploy PR previews -# concurrency: preview-${{ github.ref }} -# on: -# pull_request: -# types: -# - opened -# - reopened -# - synchronize -# - closed -# jobs: -# deploy-preview: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# - run: npm i && npm run build -# if: github.event.action != 'closed' -# - uses: rossjrw/pr-preview-action@v1 -# with: -# source-dir: ./out -# preview-branch: gh-pages -# umbrella-dir: pr-preview -# action: auto +# .github/workflows/preview.yml +name: Deploy PR previews +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm i && npm run build + if: github.event.action != 'closed' + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./out + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto \ No newline at end of file