Update build.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create new realease | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "!**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install fuse and libfuse2 | |
run: sudo apt install fuse libfuse2 | |
- name: appimagetool | |
run: | | |
set -x | |
cd ../ | |
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | |
chmod +x appimagetool-x86_64.AppImage | |
pwd; ls -lah | |
- name: Make AppImage | |
run: | | |
set -x | |
rm -rv .git/ .github/ | |
cd ../ | |
ARCH=x86_64 ./appimagetool-x86_64.AppImage IrfanView_AppImage/ | |
pwd; ls -lah | |
fileName=$(ls IrfanView*.AppImage) | |
echo "fileName: $fileName" | |
fileNameNew=$(echo "$fileName" | sed 's/.AppImage//') | |
mv "$fileName" "${fileNameNew}"-1_JB.AppImage | |
md5sum "${fileNameNew}"-1_JB.AppImage > "${fileNameNew}"-1_JB.AppImage.md5 | |
pwd; ls -lah | |
mv "${fileNameNew}"-1_JB.AppImage "${fileNameNew}"-1_JB.AppImage.md5 IrfanView_AppImage/ | |
- uses: xresloader/upload-to-github-release@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "IrfanView*.AppImage; IrfanView*.md5" | |
release_id: ${{ steps.create_release.outputs.id }} | |
verbose: true | |
draft: false | |
default_release_name: "IrfanView V in AppImage" |