Skip to content

Commit

Permalink
Merge pull request #23 from chingu-voyages/T2T2-19
Browse files Browse the repository at this point in the history
T2T2-19 - Add a Github Action Workflow to automate deploy
  • Loading branch information
Predrag-Jandric authored Sep 19, 2024
2 parents 0f9e418 + 413e108 commit 2275c3f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea

0 comments on commit 2275c3f

Please sign in to comment.