diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 196d6bb..53e4b18 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,10 +33,12 @@ jobs: deploy: needs: build runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} +# environment: +# name: github-pages +# url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist \ No newline at end of file diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..1906bab --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,25 @@ +name: preview.yml +on: pull_request + +concurrency: + group: preview-${{ github.ref }} + cancel-in-progress: true + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + + - uses: pnpm/action-setup@v6 + + - name: Install and Build + if: github.event.action != 'closed' # We don't need the build if we know the preview will be removed + uses: withastro/action@v5 + + - name: Deploy preview + uses: rajyan/preview-pages@v1 + with: + source-dir: ./dist/ + configured-domain: kilt.bluspring.xyz \ No newline at end of file