chore: remove Gitea Actions workflow
Some checks failed
Linter / lint (push) Failing after 20s
Test / unit-test (push) Failing after 7s
Some checks failed
Linter / lint (push) Failing after 20s
Test / unit-test (push) Failing after 7s
This commit is contained in:
parent
d91a20e65c
commit
4be218d012
@ -1,46 +0,0 @@
|
|||||||
name: Deploy Blog
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- 'examples/blog/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
uses: pnpm/action-setup@v2
|
|
||||||
with:
|
|
||||||
version: 10
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '22'
|
|
||||||
cache: pnpm
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Build blog
|
|
||||||
run: pnpm -F=blog docs:build
|
|
||||||
|
|
||||||
- name: Setup SSH
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "${{ secrets.R730_ED25519 }}" > ~/.ssh/deploy_key
|
|
||||||
chmod 600 ~/.ssh/deploy_key
|
|
||||||
ssh-keyscan -H 172.30.0.77 >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Deploy to server
|
|
||||||
run: |
|
|
||||||
rsync -avz --delete \
|
|
||||||
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no" \
|
|
||||||
examples/blog/docs/.vuepress/dist/ \
|
|
||||||
yuany3721@172.30.0.77:/home/yuany3721/webpages/blog/
|
|
||||||
Loading…
x
Reference in New Issue
Block a user