-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (43 loc) · 1.42 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
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 engineering@snxdao.io
- run: git config --global user.name synthetix-team
- uses: actions/checkout@v4
with:
path: liquidity
repository: 'Synthetixio/liquidity.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.LIQUIDITY_SSH_KEY }}'
- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'
- run: yarn workspaces focus @snx-v3/liquidity
working-directory: v3ui
- run: yarn workspace @snx-v3/liquidity build
working-directory: v3ui
- run: rm -rf ./liquidity/*
- run: git checkout HEAD -- CNAME || true
working-directory: liquidity
- run: cp -r ./v3ui/liquidity/ui/dist/* ./liquidity/
- run: git add .
working-directory: liquidity
- 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
- run: git push origin master
working-directory: liquidity