[feature] color aligned; click-unclick animation #16
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: 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 |