I have the following steps to publish and upload some files to artifact:
- 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
The Build succeeded however after downloading the artifact, I see the following structure:
Is there a way to update the above code such that artifact will contain the following structure?
If a wildcard pattern is used, the path hierarchy will be preserved after the first wildcard pattern.
- 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/**
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.