Skip to content

Commit

Permalink
Merge pull request #425 from wasedatime/feat/add-webhook
Browse files Browse the repository at this point in the history
feat: adding web hooks for forums
  • Loading branch information
YHhaoareyou authored May 3, 2023
2 parents f76867f + 5c1a08b commit d0d4ec3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,35 @@ jobs:
if: github.event.release.prerelease == true
strategy:
matrix:
microapps: ["WEBHOOK_ROOT_DEV", "WEBHOOK_SYLLABUS_DEV", "WEBHOOK_CAMPUS_DEV", "WEBHOOK_FEEDS_DEV"]
microapps:
[
"WEBHOOK_ROOT_DEV",
"WEBHOOK_SYLLABUS_DEV",
"WEBHOOK_CAMPUS_DEV",
"WEBHOOK_FEEDS_DEV",
"WEBHOOK_FORUMS_DEV",
]
env:
url: ${{ secrets[matrix.microapps] }}
steps:
- name: Deploy staging
run:
curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"

build-prod:
runs-on: ubuntu-latest
if: github.event.release.prerelease != true
strategy:
matrix:
microapps: ["WEBHOOK_ROOT_PROD", "WEBHOOK_SYLLABUS_PROD", "WEBHOOK_CAMPUS_PROD", "WEBHOOK_FEEDS_PROD"]
microapps:
[
"WEBHOOK_ROOT_PROD",
"WEBHOOK_SYLLABUS_PROD",
"WEBHOOK_CAMPUS_PROD",
"WEBHOOK_FEEDS_PROD",
"WEBHOOK_FORUMS_PROD",
]
env:
url: ${{ secrets[matrix.microapps] }}
steps:
- name: Deploy production
run:
curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"

0 comments on commit d0d4ec3

Please sign in to comment.