Add app-main class to layout for full height and width #323
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 | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Zip | |
run: sh bin/zip.sh | |
# - name: Move dist directory | |
# uses: appleboy/ssh-action@master | |
# with: | |
# host: ${{ secrets.SERVER_HOST }} | |
# username: ${{ secrets.SERVER_USERNAME }} | |
# password: ${{ secrets.SERVER_PASSWORD }} | |
# script: | | |
# cd /root | |
# if [ -d 'tang-vue' ]; then | |
# mkdir tang-vue | |
# fi | |
# cd tang-vue/ | |
# if [ ! -d 'dists' ]; then | |
# mkdir dists | |
# fi | |
# zip -r dists/dist-$(date +%Y%m%d%H%M%S).zip dist/ | |
# rm -rf dist/ | |
# - name: Upload to server | |
# uses: appleboy/scp-action@master | |
# with: | |
# host: ${{ secrets.SERVER_HOST }} | |
# username: ${{ secrets.SERVER_USERNAME }} | |
# password: ${{ secrets.SERVER_PASSWORD }} | |
# port: 22 | |
# source: 'dist.zip' | |
# target: /root/tang-vue/ | |
# - name: Deploy | |
# uses: appleboy/ssh-action@master | |
# with: | |
# host: ${{ secrets.SERVER_HOST }} | |
# username: ${{ secrets.SERVER_USERNAME }} | |
# password: ${{ secrets.SERVER_PASSWORD }} | |
# port: 22 | |
# script: | | |
# cd /root/tang-vue/ | |
# unzip dist.zip |