Skip to content

Commit

Permalink
Fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Jun 27, 2020
1 parent d9aaeaa commit 671d130
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ jobs:
with:
version: latest
args: release --skip-publish --rm-dist
-
name: Strip to dist
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
rm -f dist/CHANGELOG.md dist/config.yaml
for folder in dist/*; do
if [ -d ${folder} ]; then
filename=$(basename $folder)
if [[ $filename == *"windows"* ]]; then
filename=${filename}.exe
fi
for xgo in ${folder}/*; do
mv "${xgo}" "dist/${filename}.tmp"
rm -rf "${folder}"
mv "dist/${filename}.tmp" "dist/${filename}"
done
fi
done
-
name: GitHub Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 671d130

Please sign in to comment.