v1.2.0: Named Asset Display and Improved Balance Management #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |