Skip to content

Commit

Permalink
Release to liquidity.synthetix.io (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit authored Nov 13, 2024
1 parent a6a8736 commit 09f5414
Showing 1 changed file with 42 additions and 16 deletions.
58 changes: 42 additions & 16 deletions .github/workflows/release-liquidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,65 @@ jobs:

- uses: actions/checkout@v4
with:
path: liquidity
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 }}'

- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'
- run: rm -rf ./liquidity.synthetix.eth/*

- run: yarn workspaces focus @snx-v3/liquidity
working-directory: v3ui
- run: git checkout HEAD -- CNAME || true
working-directory: liquidity.synthetix.eth

- run: yarn workspace @snx-v3/liquidity build
working-directory: v3ui
- 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/*
- run: rm -rf ./liquidity.synthetix.io/*

- run: git checkout HEAD -- CNAME || true
working-directory: liquidity
working-directory: liquidity.synthetix.io

- run: cp -r ./v3ui/liquidity/ui/dist/* ./liquidity/
- run: cp -r ./liquidity-ui/liquidity/ui/dist/* ./liquidity.synthetix.io/

- run: git add .
working-directory: liquidity
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
working-directory: liquidity.synthetix.io
- run: git push origin master
working-directory: liquidity
working-directory: liquidity.synthetix.io

0 comments on commit 09f5414

Please sign in to comment.