Skip to content

v1.2.0: Named Asset Display and Improved Balance Management #2

v1.2.0: Named Asset Display and Improved Balance Management

v1.2.0: Named Asset Display and Improved Balance Management #2

Workflow file for this run

name: Deploy Ghost Interface
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: yarn install
- name: Build the React app
run: yarn build
- name: Deploy to build branch
run: |
git config --global user.name 'deployoooor[bot]'
git config --global user.email 'deployoooor[bot]@threedots.io'
git clone --single-branch --branch build https://github.com/${{ github.repository }} build
cp build/CNAME dist/CNAME || true
rsync -avc --delete --exclude='.git' dist/ build/
cd build
git add .
git commit -m "Deploy to build branch"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} build