Skip to content

[feature] color aligned; click-unclick animation #16

[feature] color aligned; click-unclick animation

[feature] color aligned; click-unclick animation #16

Workflow file for this run

name: Build and deploy app
on:
push:
pull_request:
# permissions:
# contents: write
jobs:
build:
name: Build and deploy app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup Yarn
uses: threeal/[email protected]
with:
cache: false
- name: Build app
run: yarn run build
# If the app builds successfully, and is not a PR:
# Deploy to production
- name: Deploy with ssh
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_DEPLOY_IP }}
username: ${{ secrets.SSH_DEPLOY_USER }}
key: ${{ secrets.SSH_DEPLOY_KEY }}
script: |
source ~/.zshrc &&
cd ~/frontend-server &&
git pull &&
npm run build &&
npm run up