删掉上传功能
All checks were successful
Gitea Actions 示例 / example (push) Successful in 13s

This commit is contained in:
mrbbbaixue 2025-04-29 10:12:27 +08:00
parent 1d0e1b10ef
commit 09a1913c23
2 changed files with 3 additions and 12 deletions

View File

@ -15,10 +15,4 @@ jobs:
uses: https://git.ra3battle.cn/actions/checkout@v4 uses: https://git.ra3battle.cn/actions/checkout@v4
- name: 输出README内容 - name: 输出README内容
run: cat README.md run: cat README.md
- name: 上传Artifacts
uses: https://git.ra3battle.cn/actions/upload-artifact@v4
with:
name: example-readme
path: README.md

View File

@ -1,9 +1,9 @@
# Gitea Actions 使用指南 # Gitea Actions 使用指南
![](./actions/workflows/example/badge.svg?branch=master)
## 示例说明 ## 示例说明
1. 本示例展示如何: 1. 本示例展示如何:
- 输出README.md文件内容 - 输出README.md文件内容
- 上传README.md作为artifacts
## 配置文件解析 ## 配置文件解析
详细解释example.yml的每个部分: 详细解释example.yml的每个部分:
@ -12,13 +12,11 @@
- `steps`: 执行步骤,包含: - `steps`: 执行步骤,包含:
- 检出代码 - 检出代码
- 输出README内容 - 输出README内容
- 上传Artifacts
## 示例使用方法 ## 示例使用方法
1. 将example.yml文件放入.gitea/workflows/目录 1. 将example.yml文件放入.gitea/workflows/目录
2. 推送代码到main分支 2. 推送代码到main分支
3. 在Gitea的Actions页面查看执行结果 3. 在Gitea的Actions页面查看执行结果
4. 在Artifacts部分下载打包文件
> 注意请使用本站地址来指定Actions镜像例如 > 注意请使用本站地址来指定Actions镜像例如
> `https://git.ra3battle.cn/actions/upload-artifact` > `https://git.ra3battle.cn/actions/upload-artifact`
@ -27,5 +25,4 @@
- [Gitea官方Actions示例文档](https://docs.gitea.com/zh-cn/usage/actions/act-runner) - [Gitea官方Actions示例文档](https://docs.gitea.com/zh-cn/usage/actions/act-runner)
## 自定义配置 ## 自定义配置
- 要修改触发分支,编辑`branches`部分 - 要修改触发分支,编辑`branches`部分
- 要修改artifacts名称编辑`name`参数