diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..4596069 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,23 @@ +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: . \ No newline at end of file diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..6a42405 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,16 @@ +name: Deploy +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: . + branch: gh-pages + clean-exclude: pr-preview + force: false \ No newline at end of file