Skip to content

Commit 208296c

Browse files
committed
add upload_file.yml
1 parent 69b8444 commit 208296c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/upload_file.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: upload_file
2+
on: [push]
3+
jobs:
4+
upload-file1:
5+
runs-on: ubuntu-latest
6+
steps:
7+
# 下载文件
8+
- name: Download File
9+
run: wget https://github.com/pitycycy/example-github-actions-helloworld/raw/refs/heads/main/hello.txt
10+
# 这将从您的工作流中上传工件,且允许您在工作流完成后在作业之间共享数据并存储数据
11+
- uses: actions/upload-artifact@v2
12+
with:
13+
- name: my-artifact # 文件名称
14+
- path: hello.txt # 文件路径
15+
- if-no-files-found: error # 未找到文件时执行的操作

0 commit comments

Comments
 (0)