Skip to content

feat: implementazione Deploy PR previews #3

feat: implementazione Deploy PR previews

feat: implementazione Deploy PR previews #3

# .github/workflows/preview.yml
name: Deploy PR preview
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: yarn install && yarn build
env:
CI: false
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/public
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto