Skip to content

Commit

Permalink
Releases for governance and oracle-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Oct 18, 2023
1 parent 5a1d534 commit 4ce17fc
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 23 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release-governance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: release-governance

on:
push:
tags:
- 'release-governance-*'
branches:
- 'governance-synthetix-eth'
- 'releases'

jobs:
release-governance:
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: governance
repository: 'Synthetixio/v3.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.GOVERNANCE_SSH_KEY }}'

- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'

- run: yarn workspaces focus @snx-v3/governance
working-directory: v3ui

- run: yarn workspace @snx-v3/governance build
working-directory: v3ui

- run: rm -rf ./governance/*
- run: cp -r ./v3ui/governance/ui/dist ./governance/

- run: git add .
working-directory: governance

- run: |
git commit -m "Release ${{ github.event.release.name }}" \
--allow-empty \
-m "Source: ${{ github.server_url}}/${{ github.repository }}" \
-m "Commit: ${{ github.sha }}"
working-directory: governance
- run: git push origin master
working-directory: governance
Original file line number Diff line number Diff line change
@@ -1,52 +1,51 @@
name: release-lp
name: release-liquidity

on:
push:
tags:
- 'release-lp-*'
- 'release-liquidity-*'
branches:
- 'liquidity-synthetix-eth'
- 'releases'

jobs:
release-lp:
# Should be good without checks, we wouldn't release smth that's broken
# if: ${{ github.event.check_suite.conclusion == 'success' }}
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: lp
path: liquidity
repository: 'Synthetixio/liquidity.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.LIQUIDITY_UI_DEPLOYER_SSH_PRIVATE_KEY }}'
ssh-key: '${{ secrets.LIQUIDITY_SSH_KEY }}'

- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.SSH_PRIVATE_KEY }}'
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 ./lp/*
- run: cp -r ./v3ui/liquidity/ui/dist/* ./lp/
- run: rm -rf ./liquidity/*
- run: cp -r ./v3ui/liquidity/ui/dist/* ./liquidity/

- run: git add .
working-directory: lp
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: lp
working-directory: liquidity
- run: git push origin master
working-directory: lp
working-directory: liquidity
51 changes: 51 additions & 0 deletions .github/workflows/release-oracle-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: release-oracle-manager

on:
push:
tags:
- 'release-oracle-manager-*'
branches:
- 'oracle-manager-synthetix-eth'
- 'releases'

jobs:
release-oracle-manager:
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: oracle-manager
repository: 'Synthetixio/oracle-manager.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.ORACLE_MANAGER_SSH_KEY }}'

- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'

- run: yarn workspaces focus @snx-v3/oracle-manager
working-directory: v3ui

- run: yarn workspace @snx-v3/oracle-manager build
working-directory: v3ui

- run: rm -rf ./oracle-manager/*
- run: cp -r ./v3ui/oracle-manager/ui/dist ./oracle-manager/

- run: git add .
working-directory: oracle-manager

- run: |
git commit -m "Release ${{ github.event.release.name }}" \
--allow-empty \
-m "Source: ${{ github.server_url}}/${{ github.repository }}" \
-m "Commit: ${{ github.sha }}"
working-directory: oracle-manager
- run: git push origin master
working-directory: oracle-manager
7 changes: 3 additions & 4 deletions .github/workflows/release-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:
- 'release-website-*'
branches:
- 'v3-synthetix-eth'
- 'releases'

jobs:
release-website:
# Should be good without checks, we wouldn't release smth that's broken
# if: ${{ github.event.check_suite.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- run: git config --global user.email [email protected]
Expand All @@ -21,13 +20,13 @@ jobs:
path: website
repository: 'Synthetixio/v3.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.V3_WEBSITE_DEPLOYER_SSH_PRIVATE_KEY }}'
ssh-key: '${{ secrets.WEBSITE_SSH_KEY }}'

- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.SSH_PRIVATE_KEY }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'

- run: yarn workspaces focus @snx-v3/website
working-directory: v3ui
Expand Down
3 changes: 1 addition & 2 deletions governance/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"start": "webpack-cli serve",
"build": "NODE_ENV=production webpack-cli",
"load-env": "source ./load-env.sh",
"standalone-install": "yarn workspaces focus '@snx-v3/governance'",
"standalone-build": "yarn workspaces foreach --topological-dev --recursive --verbose --from '@snx-v3/governance' run build"
"focus": "yarn workspaces focus '@snx-v3/governance'"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
Expand Down
3 changes: 1 addition & 2 deletions liquidity/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"scripts": {
"start": "webpack-cli serve",
"build": "NODE_ENV=production webpack-cli",
"standalone-install": "yarn workspaces focus '@synthetixio/v3-ui'",
"standalone-build": "yarn workspaces foreach --topological-dev --recursive --verbose --from '@snx-v3/liquidity' run build"
"focus": "yarn workspaces focus '@synthetixio/v3-ui'"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
Expand Down
3 changes: 1 addition & 2 deletions oracle-manager/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"start": "webpack-cli serve",
"build": "NODE_ENV=production webpack-cli",
"load-env": "source load-env.sh",
"standalone-install": "yarn workspaces focus '@snx-v3/oracle-manager'",
"standalone-build": "yarn workspaces foreach --topological-dev --recursive --verbose --from '@snx-v3/oracle-manager' run build"
"focus": "yarn workspaces focus '@snx-v3/oracle-manager'"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
Expand Down

0 comments on commit 4ce17fc

Please sign in to comment.