feat: 删除 ci.yml,新增 setup-node-environment.yml 和 deploy-dist-to-surge.yml 工作流

This commit is contained in:
严浩
2024-10-12 14:18:46 +08:00
parent edf12e5623
commit 238392db7a
5 changed files with 54 additions and 11 deletions

View File

@ -0,0 +1,24 @@
on:
push:
branches:
- main
paths:
- "deploy-dist-to-surge.yml/**"
- ".github/workflows/deploy-dist-to-surge.yml"
env:
TZ: Asia/Shanghai
jobs:
job:
runs-on: ubuntu-latest
steps:
- name: 准备部署文件
run: |
mkdir dist
echo "<h1>Hello, World!</h1>" > dist/index.html
- uses: yanhao98/composite-actions/deploy-dist-to-surge.yml@main
id: surge_deploy
- name: Check Surge URL
run: |
set -x
echo ${{ steps.surge_deploy.outputs.url }}