diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c314845..73592ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,20 +15,22 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v2 - - name: Check version + - name: Build id: build - run: | - wget https://raw.githubusercontent.com/valicm/appimage-bash/main/build.sh - chmod +x build.sh - bash build.sh verify + uses: valicm/appimage-bash@main + with: + version_url: 'https://dl.pstmn.io/download/latest/linux64' + version_file: 'app/resources/app/package.json' + version_bash: 'jq -r .version' + version_icon: 'icon_128x128.png' - name: Upload artifact - if: ${{ env.APP_UPDATE_NEEDED == 1 }} + if: ${{ env.APP_UPDATE_NEEDED == 'true' }} uses: actions/upload-artifact@v1 with: name: ${{ env.APP_SHORT_NAME }}.AppImage path: 'dist' - name: Release - if: ${{ env.APP_UPDATE_NEEDED == 1 }} + if: ${{ env.APP_UPDATE_NEEDED == 'true' }} uses: marvinpinto/action-automatic-releases@latest with: title: ${{ env.APP_NAME }} AppImage ${{ env.APP_VERSION }} diff --git a/README.md b/README.md index a49afc4..8b77a67 100644 --- a/README.md +++ b/README.md @@ -28,5 +28,5 @@ chmod +x Postman-*.AppImage ``` #### Build -The AppImage is built from .tar.gz DBeaver package by GitHub Continuous Integration using this +The AppImage is built from .tar.gz Postman package by GitHub Continuous Integration using this bash script https://github.com/valicm/appimage-bash. diff --git a/app.desktop b/app.desktop index 3375604..2180c13 100644 --- a/app.desktop +++ b/app.desktop @@ -7,8 +7,3 @@ Icon=Postman StartupWMClass=Postman Categories=Development; Comment=Postman REST Client - -VersionUrl=https://dl.pstmn.io/download/latest/linux64 -VersionFile=app/resources/app/package.json -VersionBash=jq -r .version -VersionIcon=icon_128x128.png