Files
test-1/.gitea/workflows/deploy.yml
xiaofangqing 4c1bcd561b
All checks were successful
deploy demo / deploy (push) Successful in 22s
ci: 更新测试输出内容
2026-03-18 17:45:09 +08:00

32 lines
733 B
YAML

# .gitea/workflows/deploy.yml
name: deploy demo
on:
push:
branches:
- "main" # 针对 main 分支
paths:
- ".gitea/workflows/*" # 表示推送到main分支 并且以下文件进行了修改才会执行
- "src/**"
- "package.json"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # 第三方的 action
- name: create a folder # 创建文件夹
run: mkdir test-folder
- name: create a file # 创建一个文件
run: | # 这样下面就可以执行多行
cd test-folder
touch a.txt
echo "hello world " > a.txt
cat a.txt
- name: delete a file # 删除文件
run: rm -rf a.txt