Skip to content

Build: avoid mv when AppImage already in project root (fix CI exit 1) #3

Build: avoid mv when AppImage already in project root (fix CI exit 1)

Build: avoid mv when AppImage already in project root (fix CI exit 1) #3

Workflow file for this run

name: Build and Release AppImage
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
appimage-x86_64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y wget file
- name: Build AppImage (x86_64)
env:
ARCH: x86_64
VERSION: ${{ github.ref_name }}
APPIMAGE_EXTRACT_AND_RUN: 1
run: |
chmod +x packaging/appimage/build-appimage.sh
packaging/appimage/build-appimage.sh
- name: Compute checksum
run: |
sha256sum HyprSnipper-x86_64.AppImage | tee HyprSnipper-x86_64.AppImage.sha256
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: appimage-${{ github.ref_name }}-x86_64
path: |
HyprSnipper-x86_64.AppImage
HyprSnipper-x86_64.AppImage.sha256
- name: Upload to GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
HyprSnipper-x86_64.AppImage
HyprSnipper-x86_64.AppImage.sha256