@@ -148,23 +148,6 @@ jobs:
148148 permissions :
149149 contents : write
150150 steps :
151- - uses : actions/checkout@v4
152- with :
153- fetch-depth : 0
154-
155- - name : Generate tag name
156- id : tag
157- run : |
158- if [[ "${{ github.ref }}" == refs/tags/* ]]; then
159- echo "name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
160- else
161- COMMIT_MSG=$(git log -1 --pretty=%s)
162- TIMESTAMP=$(date +%Y%m%d-%H%M%S)
163- TAG_NAME="v${TIMESTAMP}-${COMMIT_MSG//[^a-zA-Z0-9]/-}"
164- TAG_NAME=$(echo "$TAG_NAME" | tr '[:upper:]' '[:lower:]' | cut -c1-50)
165- echo "name=$TAG_NAME" >> $GITHUB_OUTPUT
166- fi
167-
168151 - name : Download all artifacts
169152 uses : actions/download-artifact@v4
170153 with :
@@ -173,20 +156,16 @@ jobs:
173156 - name : Create Release
174157 uses : softprops/action-gh-release@v2
175158 with :
176- tag_name : ${{ steps.tag.outputs.name }}
177- name : Release ${{ steps.tag.outputs.name }}
159+ tag_name : build- ${{ github.run_number }}
160+ name : " Build ${{ github.run_number }}"
178161 body : |
179- Automated release for commit: ${{ github.sha }}
180- Commit message: ${{ github.event.head_commit.message }}
162+
163+ Automated build from workflow run #${{ github.run_number }}
164+
165+ **Commit:** ${{ github.sha }}
166+ **Date:** $(date +'%Y-%m-%d %H:%M:%S UTC')
181167 files : |
182- artifacts/abx-tools-windows-x64/*.zip
183- artifacts/abx-tools-windows-x86/*.zip
184- artifacts/abx-tools-android-aarch64/*.tar.gz
185- artifacts/abx-tools-android-armv7a/*.tar.gz
186- artifacts/abx-tools-android-x86_64/*.tar.gz
187- artifacts/abx-tools-android-i686/*.tar.gz
188- artifacts/abx-tools-android-riscv64/*.tar.gz
189- draft : false
190- prerelease : false
168+ artifacts/**/*.zip
169+ artifacts/**/*.tar.gz
191170 env :
192171 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments