fix: 更新 “视相“ 主题后未关闭退出基建弹窗时无法回到主界面 #1252
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 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- nginx.conf | |
- 'MaaAssistantArknights/**' | |
- .github/workflows/deploy.yml | |
workflow_dispatch: | |
jobs: | |
sync-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup ssh key | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.OTA_SERVER_SSH_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -t rsa -H ${{ secrets.OTA_SERVER_SSH_HOST }} >> ~/.ssh/known_hosts | |
- name: Sync repository | |
run: | | |
ssh ${{ secrets.OTA_SERVER_SSH_USER }}@${{ secrets.OTA_SERVER_SSH_HOST }} \ | |
" | |
set -e | |
mkdir -p ~/MaaRelease | |
cd ~/MaaRelease | |
git init | |
git fetch --force --no-tags --prune --update-head-ok --progress \ | |
'https://github.com/${{ github.repository }}' \ | |
'+HEAD:refs/remotes/origin/HEAD' | |
git checkout --force --progress refs/remotes/origin/HEAD | |
echo Generating lastUpdateTime.json | |
mkdir -p MaaAssistantArknights/api/ | |
date --utc +%Y%m%d%H%M%S | jq '{timestamp:.}' | tee MaaAssistantArknights/api/lastUpdateTime.json | |
" |