发布到工件中的单独文件夹(GitHub操作)
我有以下步骤来发布和上载一些文件:发布到工件中的单独文件夹(GitHub操作),github,github-actions,Github,Github Actions,我有以下步骤来发布和上载一些文件: - name: dotnet publish FA1 run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_publish_output - name: publish FA1 files uses: actions/upload-artifact@v2 with: name: ${
- name: dotnet publish FA1
run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_publish_output
- name: publish FA1 files
uses: actions/upload-artifact@v2
with:
name: ${{github.run_number}}
path: |
fa1_publish_output
- name: dotnet publish FA2
run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output fa2_publish_output
- name: publish FA2 files
uses: actions/upload-artifact@v2
with:
name: ${{github.run_number}}
path: |
fa2_publish_output
fa1_publish_输出包含一个文件host.json和一个文件夹fa1
fa2_publish_输出包含一个文件host.json和一个文件夹fa2
构建成功,但在下载工件后,我看到以下结构:
有没有办法更新上面的代码,使工件包含以下结构
fa1_app -> host.json
fa1
fa2_app -> host.json
fa2
- name: dotnet publish FA1
run: dotnet publish Service/FA1/FA1.csproj --configuration Release --output fa1_app
- name: dotnet publish FA2
run: dotnet publish Service/FA2/FA2.csproj --configuration Release --output fa2_app
- name: publish files to artifact
uses: actions/upload-artifact@v2
with:
name: ${{github.run_number}}
path: |
fa1_app
fa2_app