洛天依 5af718bb7f
Some checks failed
CI / Deploy (push) Failing after 6s
fix: ci
2025-01-21 21:10:59 +00:00

42 lines
1.3 KiB
YAML

on: [push, pull_request, workflow_dispatch]
name: CI
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
DEPLOY_SERVER: copy.lty.name
DEPLOY_SERVER_KEY: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBKn1tARbrf+klrF31iN1Q0otmL1AvDDI87kC7HLo5ix
DEPLOY_TARGET: homepage
ACTIONS_STEP_DEBUG: true
GIT_CURL_VERBOSE: 1
GIT_TRACE: 1
steps:
- uses: https://gitea.com/actions/checkout@v4
with:
persist-credentials: false
- name: build
run: |
git lfs install
git config --list
git lfs pull
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install dependencies & Build
# run: |
# pip install pdm==2.20.1
# pdm install
# pdm start
# - if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
# name: Deploy to the web server
# run: |
# 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 }}