-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.09 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy
on: workflow_dispatch
jobs:
deploy-func-go:
uses: k0swe/forester/.github/workflows/deploy-func-go.yml@main
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
deploy-func-js:
uses: k0swe/forester/.github/workflows/deploy-func-js.yml@main
secrets:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
deploy-web:
uses: k0swe/forester/.github/workflows/deploy-web.yml@main
secrets:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
notify:
runs-on: ubuntu-latest
needs: [deploy-func-go, deploy-func-js, deploy-web]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tag as deployed
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
git tag deployed --force
git push --tags --force
- name: Google Chat Notification
uses: Co-qn/google-chat-notification@v1
with:
name: Forester Deploy
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
if: always()