From 359021e10310456f9ebbc96a650d8e75513859b1 Mon Sep 17 00:00:00 2001 From: Jordi Rejas Date: Mon, 16 Sep 2024 20:31:04 +0200 Subject: [PATCH] - Deploy project - Build project --- .github/workflows/develop.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/develop.yml diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..3cac47e --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,27 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy development branch to Netlify + +on: [push] + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Send deploy webhook + run: curl -X POST -d '{}' https://api.netlify.com/build_hooks/${{ secrets.JORDI_DEVELOPMENT_DEPLOY_WEBHOOK_ID }} \ No newline at end of file