From 413e1080983e24b7b84dedbb9f974c60ba14863c Mon Sep 17 00:00:00 2001 From: Jordi Rejas Date: Mon, 16 Sep 2024 20:31:04 +0200 Subject: [PATCH] - Deploy development branch project to Netlify - gitgnore in the root folder --- .github/workflows/develop.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/develop.yml create mode 100644 .gitignore diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..0038de3 --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,30 @@ +# 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: + branches: + - development + +# 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file