-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.23 KB
/
deploy-to-ifrs.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
name: Deploy to IFRS
on:
push:
branches:
- main
jobs:
DeployFrontend:
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.IFRS_SSH_KEY }}
known_hosts: ${{ secrets.IFRS_SSH_HOST }}
if_key_exists: fail
- uses: actions/checkout@v3
- run: git subtree split -P frontend -b stage-release
- run: git checkout stage-release
- run: git reset --hard
- run: git remote add ifrs [email protected]:ifrscanoas/richard-burton/frontend.git
- run: git pull --rebase ifrs
- run: git push -f ifrs stage-release
DeployBackend:
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.IFRS_SSH_KEY }}
known_hosts: ${{ secrets.IFRS_SSH_HOST }}
if_key_exists: fail
- uses: actions/checkout@v3
- run: git subtree split -P backend -b stage-release
- run: git checkout stage-release
- run: git reset --hard
- run: git remote add ifrs [email protected]:ifrscanoas/richard-burton/backend.git
- run: git pull --rebase ifrs
- run: git push -f ifrs stage-release