This commit is contained in:
@@ -3,6 +3,7 @@ name: Gitea Actions 示例
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# 在master分支上,有push时运行
|
||||
- master
|
||||
|
||||
jobs:
|
||||
@@ -16,11 +17,8 @@ jobs:
|
||||
- name: 输出README内容
|
||||
run: cat README.md
|
||||
|
||||
- name: 打包项目目录
|
||||
run: tar -czf project.tar.gz .
|
||||
|
||||
- name: 上传artifacts
|
||||
uses: https://git.ra3battle.cn/actions/upload-artifact@v3
|
||||
- name: 上传Artifacts
|
||||
uses: https://git.ra3battle.cn/actions/upload-artifact@v4
|
||||
with:
|
||||
name: project-package
|
||||
path: project.tar.gz
|
||||
name: example-readme
|
||||
path: README.md
|
||||
Reference in New Issue
Block a user