mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Enhance workflow to include SHA256 checksum generation
Added steps to generate SHA256 checksum and upload AppImage.
This commit is contained in:
27
.github/workflows/build-appimage.yml
vendored
27
.github/workflows/build-appimage.yml
vendored
@@ -54,3 +54,30 @@ jobs:
|
|||||||
name: ProxMenux-${{ steps.version.outputs.VERSION }}-AppImage
|
name: ProxMenux-${{ steps.version.outputs.VERSION }}-AppImage
|
||||||
path: AppImage/dist/*.AppImage
|
path: AppImage/dist/*.AppImage
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Generate SHA256 checksum
|
||||||
|
run: |
|
||||||
|
cd AppImage/dist
|
||||||
|
sha256sum *.AppImage > ProxMenux-Monitor.AppImage.sha256
|
||||||
|
echo "Generated SHA256:"
|
||||||
|
cat ProxMenux-Monitor.AppImage.sha256
|
||||||
|
|
||||||
|
- name: Upload AppImage and checksum to /AppImage folder in main
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
git fetch origin main
|
||||||
|
git checkout main
|
||||||
|
|
||||||
|
rm -f AppImage/*.AppImage AppImage/*.sha256 || true
|
||||||
|
|
||||||
|
# Copy new files
|
||||||
|
cp AppImage/dist/*.AppImage AppImage/
|
||||||
|
cp AppImage/dist/ProxMenux-Monitor.AppImage.sha256 AppImage/
|
||||||
|
|
||||||
|
git add AppImage/*.AppImage AppImage/*.sha256
|
||||||
|
git commit -m "Update AppImage build ($(date +'%Y-%m-%d %H:%M:%S'))" || echo "No changes to commit"
|
||||||
|
git push origin main
|
||||||
|
|||||||
Reference in New Issue
Block a user