![](/img/trans.png)
[英]Does GitHub Actions download-artifact create an archive or folder structure?
[英]Artifact structure of Build in GitHub Actions
我有以下步骤来发布和上传一些文件到工件:
- name: dotnet publish FA1
run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_publish_output
- name: dotnet publish FA2
run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output fa2_publish_output
- name: publish files to artifact
uses: actions/upload-artifact@v2
with:
name: ${{github.run_number}}
path: |
fa1_publish_output
fa2_publish_output
构建成功但是在下载工件后,我看到以下结构:
有没有办法更新上面的代码,这样工件将包含以下结构?
如果使用通配符模式,路径层次结构将保留在第一个通配符模式之后。
来源: https : //github.com/actions/upload-artifact/tree/27bce4eee761b5bc643f46a8dfb41b430c8d05f6#upload-using-multiple-paths-and-exclusions
- name: dotnet publish FA1
run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output upload/Function_Apps/fa1_publish_output
- name: dotnet publish FA2
run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output upload/Function_Apps/fa2_publish_output
- name: publish files to artifact
uses: actions/upload-artifact@v2
with:
name: ${{github.run_number}}
path: upload/**
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.