mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
Bumps the github-actions group with 1 update: [pnpm/action-setup](https://github.com/pnpm/action-setup). Updates `pnpm/action-setup` from 6.0.8 to 6.0.9 - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v6.0.8...v6.0.9) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: 6.0.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest # 运行环境
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v6
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v6.0.9
|
|
with:
|
|
version: 10.28.2
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "24.13.0"
|
|
cache: "pnpm"
|
|
cache-dependency-path: docs/pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
working-directory: './docs'
|
|
- name: Build docs
|
|
run: pnpm run docs:build
|
|
working-directory: './docs'
|
|
- name: scp
|
|
uses: appleboy/scp-action@v1.0.0
|
|
with:
|
|
host: ${{ secrets.HOST_NEKO }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORDNEKO }}
|
|
source: 'docs/.vitepress/dist/*'
|
|
target: '/tmp/'
|
|
- name: script
|
|
uses: appleboy/ssh-action@v1.2.5
|
|
with:
|
|
host: ${{ secrets.HOST_NEKO }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORDNEKO }}
|
|
script: |
|
|
mkdir -p /root/docker_data/caddy/caddy_data/static_site/abv4/
|
|
rm -rf /root/docker_data/caddy/caddy_data/static_site/abv4/*
|
|
mv /tmp/docs/.vitepress/dist/* /root/docker_data/caddy/caddy_data/static_site/abv4/
|
|
rm -rf /tmp/docs/
|