@@ -27,11 +27,12 @@ jobs:
2727 - name : Generate changelog
2828 id : changelog
2929 run : |
30- PREV_TAG=$(git describe --tags --abbrev=0 ${{ github.ref }}^ 2>/dev/null || echo "")
30+ set -e
31+ PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
3132 if [ -z "$PREV_TAG" ]; then
32- CHANGELOG=$(git log --pretty=format:"- %s" ${{ github.ref }})
33+ CHANGELOG=$(git log --pretty=format:"- %s" ${{ github.ref_name }})
3334 else
34- CHANGELOG=$(git log --pretty=format:"- %s" $PREV_TAG..${{ github.ref }})
35+ CHANGELOG=$(git log --pretty=format:"- %s" $PREV_TAG..${{ github.ref_name }})
3536 fi
3637 CHANGELOG=$(echo "$CHANGELOG" | grep -vE "^(chore|ci|docs):" || echo "- Initial release")
3738 echo "changelog<<EOF" >> $GITHUB_OUTPUT
7172
7273 - name : Build
7374 run : |
75+ set -e
7476 python3 -m venv --system-site-packages venv
7577 . venv/bin/activate
7678 pip install -U pip Nuitka==2.6.9 ordered-set==4.1.0 zstandard==0.23.0
@@ -100,6 +102,7 @@ jobs:
100102
101103 - name : Install AppImage tools
102104 run : |
105+ set -e
103106 sudo apt-get update
104107 sudo apt-get install -y \
105108 libfuse2 wget patchelf desktop-file-utils
@@ -111,6 +114,7 @@ jobs:
111114
112115 - name : Prepare AppDir
113116 run : |
117+ set -e
114118 mkdir -p AppDir/usr/bin
115119 mv dist/clipse-gui-v${{ needs.generate-changelog.outputs.version }}-linux-x86_64 \
116120 AppDir/usr/bin/clipse-gui
@@ -136,6 +140,7 @@ jobs:
136140
137141 - name : Build AppImage
138142 run : |
143+ set -e
139144 export ARCH=x86_64
140145 ./linuxdeploy-x86_64.AppImage \
141146 --appdir AppDir \
@@ -163,9 +168,11 @@ jobs:
163168
164169 - name : Build in ARM64 container
165170 run : |
171+ set -e
166172 docker run --rm --platform linux/arm64 \
167173 -v ${{ github.workspace }}:/workspace \
168174 -w /workspace arm64v8/ubuntu:22.04 bash -c "
175+ set -e
169176 apt-get update &&
170177 apt-get install -y python3 python3-pip python3-venv python3-dev \
171178 python3-gi python3-gi-cairo gir1.2-gtk-3.0 \
@@ -207,8 +214,9 @@ jobs:
207214
208215 - name : Build
209216 run : |
210- pip install pyinstaller pillow
211- pyinstaller --onefile \
217+ set -e
218+ python -m pip install pyinstaller pillow
219+ python -m PyInstaller --onefile \
212220 --name clipse-gui-v${{ needs.generate-changelog.outputs.version }}-macos-${{ matrix.arch }} \
213221 --hidden-import=gi \
214222 --collect-all gi \
@@ -236,7 +244,7 @@ jobs:
236244
237245 - uses : softprops/action-gh-release@v2
238246 with :
239- tag_name : ${{ github.ref }}
247+ tag_name : ${{ github.ref_name }}
240248 name : " Release v${{ needs.generate-changelog.outputs.version }}"
241249 body : ${{ needs.generate-changelog.outputs.release_body }}
242250 files : |
0 commit comments