File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 6363 name : winui-msix
6464 path : artifacts
6565
66+ - name : Archive artifacts
67+ run : |
68+ TAG="v${{ steps.version.outputs.version }}"
69+ ZIP="Classify.WinUI.${{ steps.version.outputs.version }}.zip"
70+ cd artifacts
71+ zip -r "../$ZIP" .
72+ mv "../$ZIP" .
73+
6674 - name : Create or update release
6775 env :
6876 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8290 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8391 run : |
8492 TAG="v${{ steps.version.outputs.version }}"
85- mapfile -t files < <(find artifacts -type f)
86- if [ ${#files[@]} -eq 0 ]; then
87- echo "No artifacts found to upload ."
93+ FILE=" artifacts/Classify.WinUI.${{ steps.version.outputs.version }}.zip"
94+ if [ ! -f "$FILE" ]; then
95+ echo "Archive $FILE not found ."
8896 exit 1
8997 fi
90- gh release upload "$TAG" "${files[@]} " --repo "$GITHUB_REPOSITORY" --clobber
98+ gh release upload "$TAG" "$FILE " --repo "$GITHUB_REPOSITORY" --clobber
You can’t perform that action at this time.
0 commit comments