-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (60 loc) · 2.29 KB
/
release-liquidity.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: release-liquidity
on:
push:
tags:
- 'release-liquidity-*'
branches:
- 'liquidity-synthetix-eth'
- 'releases'
jobs:
release-liquidity:
runs-on: ubuntu-latest
steps:
- run: git config --global user.email [email protected]
- run: git config --global user.name synthetix-team
- uses: actions/checkout@v4
with:
path: liquidity-ui
ref: '${{ github.sha }}'
- run: yarn workspaces focus @snx-v3/liquidity
working-directory: liquidity-ui
- run: yarn workspace @snx-v3/liquidity build
working-directory: liquidity-ui
- uses: actions/checkout@v4
with:
path: liquidity.synthetix.eth
repository: 'Synthetixio/liquidity.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.LIQUIDITY_SSH_KEY }}'
- run: rm -rf ./liquidity.synthetix.eth/*
- run: git checkout HEAD -- CNAME || true
working-directory: liquidity.synthetix.eth
- run: cp -r ./liquidity-ui/liquidity/ui/dist/* ./liquidity.synthetix.eth/
- run: git add .
working-directory: liquidity.synthetix.eth
- run: |
git commit -m "Release ${{ github.event.release.name }}" \
--allow-empty \
-m "Source: ${{ github.server_url}}/${{ github.repository }}" \
-m "Commit: ${{ github.sha }}"
working-directory: liquidity.synthetix.eth
- run: git push origin master
working-directory: liquidity.synthetix.eth
- uses: actions/checkout@v4
with:
path: liquidity.synthetix.io
repository: 'Synthetixio/liquidity.synthetix.io'
ref: 'master'
ssh-key: '${{ secrets.LIQUIDITY_SYNTHETIX_IO_SSH_KEY }}'
- run: rm -rf ./liquidity.synthetix.io/dist
- run: cp -r ./liquidity-ui/liquidity/ui/dist ./liquidity.synthetix.io/
- run: git add .
working-directory: liquidity.synthetix.io
- run: |
git commit -m "Release ${{ github.event.release.name }}" \
--allow-empty \
-m "Source: ${{ github.server_url}}/${{ github.repository }}" \
-m "Commit: ${{ github.sha }}"
working-directory: liquidity.synthetix.io
- run: git push origin master
working-directory: liquidity.synthetix.io