File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,19 +24,36 @@ jobs:
2424 run : dotnet restore Aquiis.sln
2525
2626 - name : Publish
27- run : dotnet publish ./Aquiis.SimpleStart/Aquiis.SimpleStart.csproj -c Release -o . /publish
27+ run : dotnet publish ./Aquiis.SimpleStart/Aquiis.SimpleStart.csproj -c Release -o ${{ github.workspace }} /publish
2828
2929 - name : Azure Login (for deployment)
3030 uses : azure/login@v1
3131 with :
3232 creds : ${{ secrets.AZURE_CREDENTIALS }}
3333
34+ - name : Show publish output
35+ run : |
36+ echo "Publish folder contents:"
37+ ls -la "${{ github.workspace }}/publish" || true
38+ du -sh "${{ github.workspace }}/publish" || true
39+
40+ - name : Zip publish output
41+ run : |
42+ cd "${{ github.workspace }}"
43+ if [ -d ./publish ]; then
44+ rm -f publish.zip
45+ zip -r publish.zip publish
46+ else
47+ echo "ERROR: publish folder not found" && exit 3
48+ fi
49+
3450 - name : Deploy with Azure CLI
3551 run : |
3652 az webapp deploy \
3753 --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
3854 --name ${{ secrets.AZURE_WEBAPP_NAME }} \
39- --src-path ./publish
55+ --src-path "${{ github.workspace }}/publish.zip" \
56+ --type zip
4057
4158 - name : Save publish profile to file
4259 run : |
You can’t perform that action at this time.
0 commit comments