fix: ci
Some checks failed
CI / CI (push) Failing after 5s

This commit is contained in:
洛天依 2025-01-21 21:25:45 +00:00
parent 157aedfe41
commit 471c424ca2
Signed by: luo
SSH Key Fingerprint: SHA256:V1KdsvGUpiKVfrJo1oHrAPnc/Z6k/6xgaZN7iTbYBl4

View File

@ -3,7 +3,7 @@ on: [push, pull_request, workflow_dispatch]
name: CI name: CI
jobs: jobs:
deploy: deploy:
name: Deploy name: CI
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GIT_SERVER: devops.lty.name GIT_SERVER: devops.lty.name
@ -16,23 +16,16 @@ jobs:
git clone https://${{ github.token }}@${{ env.GIT_SERVER }}/${{ github.repository }} $(pwd) git clone https://${{ github.token }}@${{ env.GIT_SERVER }}/${{ github.repository }} $(pwd)
git lfs install git lfs install
git lfs pull git lfs pull
python3 --version pip install pdm==2.20.1
file images/*.webp pdm install
# - uses: actions/setup-python@v5 pdm start
# with: - name: deploy
# python-version: '3.12' if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
# - name: Install dependencies & Build run: |
# run: | mkdir -p "${HOME}/.ssh"
# pip install pdm==2.20.1 echo "${DEPLOY_SSH_KEY}" | base64 -d > "${HOME}/.ssh/id_ed25519"
# pdm install chmod 600 "${HOME}/.ssh/id_ed25519"
# pdm start echo "${DEPLOY_SERVER} ${DEPLOY_SERVER_KEY}" > "${HOME}/.ssh/known_hosts"
# - if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' rsync -avz --delete ./dist/ "${DEPLOY_TARGET}:~/${DEPLOY_TARGET}/"
# name: Deploy to the web server env:
# run: | DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
# mkdir -p "${HOME}/.ssh"
# echo "${DEPLOY_SSH_KEY}" | base64 -d > "${HOME}/.ssh/id_ed25519"
# chmod 600 "${HOME}/.ssh/id_ed25519"
# echo "${DEPLOY_SERVER} ${DEPLOY_SERVER_KEY}" > "${HOME}/.ssh/known_hosts"
# rsync -avz --delete ./dist/ "${DEPLOY_TARGET}:~/${DEPLOY_TARGET}/"
# env:
# DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}