how-to-use/README.md
mrbbbaixue 09a1913c23
All checks were successful
Gitea Actions 示例 / example (push) Successful in 13s
删掉上传功能
2025-04-29 10:12:27 +08:00

28 lines
865 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Gitea Actions 使用指南
![](./actions/workflows/example/badge.svg?branch=master)
## 示例说明
1. 本示例展示如何:
- 输出README.md文件内容
## 配置文件解析
详细解释example.yml的每个部分:
- `on`: 定义触发条件当main分支有push时触发
- `jobs`: 定义任务包含一个名为example的任务
- `steps`: 执行步骤,包含:
- 检出代码
- 输出README内容
## 示例使用方法
1. 将example.yml文件放入.gitea/workflows/目录
2. 推送代码到main分支
3. 在Gitea的Actions页面查看执行结果
> 注意请使用本站地址来指定Actions镜像例如
> `https://git.ra3battle.cn/actions/upload-artifact`
## 更多资源
- [Gitea官方Actions示例文档](https://docs.gitea.com/zh-cn/usage/actions/act-runner)
## 自定义配置
- 要修改触发分支,编辑`branches`部分