添加Gitea Actions示例和说明文档
This commit is contained in:
26
.gitea/workflows/example.yml
Normal file
26
.gitea/workflows/example.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Gitea Actions 示例
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
example:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: https://git.ra3battle.cn/actions/checkout@v4
|
||||
|
||||
- name: 输出README内容
|
||||
run: cat README.md
|
||||
|
||||
- name: 打包项目目录
|
||||
run: tar -czf project.tar.gz .
|
||||
|
||||
- name: 上传artifacts
|
||||
uses: https://git.ra3battle.cn/actions/upload-artifact@v3
|
||||
with:
|
||||
name: project-package
|
||||
path: project.tar.gz
|
||||
Reference in New Issue
Block a user