Skip to content

Appimage

Appimage #137

Workflow file for this run

name: Appimage
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 7 1/21 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/pkgforge-dev/archlinux:latest
steps:
- uses: actions/checkout@v4
- name: Get dependencies
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
- name: Make AppImage
run: |
chmod +x ./*-appimage.sh && ./*-appimage.sh
mkdir dist
mv *.AppImage* dist/
mv *.AppBundle* dist/
mv ~/version dist/
release:
if: ${{ github.ref_name == 'main' }}
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.3.0
with:
pattern: AppImage-*
merge-multiple: true
- name: Read version and Get date
run: |
cat ./version
echo "VERSION=$(cat ./version)" >> "${GITHUB_ENV}"
echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
- name: Release Artifacts
uses: softprops/action-gh-release@v2.2.2
with:
name: "GIMP/PhotoGIMP: ${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
prerelease: false
draft: false
generate_release_notes: false
fail_on_unmatched_files: false
make_latest: true
files: |
*.AppImage*
*.AppBundle*
- uses: actions/checkout@v4
- name: Update LATEST_VERSION
run: |
echo "${{ env.VERSION }}" > ./LATEST_VERSION
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ./LATEST_VERSION
git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
git push