mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 23:00:48 +08:00
feat: 删除 ci.yml,新增 setup-node-environment.yml 和 deploy-dist-to-surge.yml 工作流
This commit is contained in:
24
.github/workflows/deploy-dist-to-surge.yml
vendored
Normal file
24
.github/workflows/deploy-dist-to-surge.yml
vendored
Normal 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 }}
|
Reference in New Issue
Block a user