Skip to content

Feature/loading design (#99) #11

Feature/loading design (#99)

Feature/loading design (#99) #11

Workflow file for this run

name: release-website
on:
push:
tags:
- 'release-website-*'
branches:
- 'v3-synthetix-eth'
- 'releases'
jobs:
release-website:
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: website
repository: 'Synthetixio/v3.synthetix.eth'
ref: 'master'
ssh-key: '${{ secrets.WEBSITE_SSH_KEY }}'
- uses: actions/checkout@v4
with:
path: v3ui
ref: '${{ github.sha }}'
ssh-key: '${{ secrets.V3UI_SSH_KEY }}'
- run: yarn workspaces focus @snx-v3/website
working-directory: v3ui
- run: yarn workspace @snx-v3/website build
working-directory: v3ui
- run: rm -rf ./website/*
- run: git checkout HEAD -- CNAME || true
working-directory: website
- run: cp ./v3ui/website/ui/_redirects ./website/_redirects
- run: cp ./v3ui/website/ui/favicon.ico ./website/favicon.ico
- run: cp ./v3ui/website/ui/index.html ./website/index.html
- run: cp -r ./v3ui/website/ui/dist ./website/
- run: git add .
working-directory: website
- run: |
git commit -m "Release ${{ github.event.release.name }}" \
--allow-empty \
-m "Source: ${{ github.server_url}}/${{ github.repository }}" \
-m "Commit: ${{ github.sha }}"
working-directory: website
- run: git push origin master
working-directory: website