Build AppImage #338
This file contains hidden or 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: Build AppImage | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "5 */12 * * *" | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| version: | |
| name: Antigravity AppImage | |
| runs-on: ubuntu-22.04 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: entepotenz/keep-github-actions-alive-min-dependencies@v1 | |
| - name: Install libfuse2 | |
| run: sudo apt-get install -y libfuse2 imagemagick | |
| - name: Get latest download URL | |
| id: get_url | |
| run: | | |
| set -euo pipefail | |
| url=$(./scripts/get-download-url.sh) | |
| if [[ -z "$url" ]]; then | |
| echo "::error::Failed to get download URL" | |
| exit 1 | |
| fi | |
| echo "Found: $url" | |
| echo "download_url=$url" >> $GITHUB_OUTPUT | |
| - name: Build | |
| id: build | |
| uses: tyvsmith/appimage-bash@main | |
| with: | |
| version_url: ${{ steps.get_url.outputs.download_url }} | |
| version_file: 'resources/app/product.json' | |
| version_bash: 'jq -r ".ideVersion"' | |
| version_icon: 'antigravity.png' | |
| - name: Upload artifact | |
| if: ${{ env.APP_UPDATE_NEEDED == 'true' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.APP_SHORT_NAME }}.AppImage | |
| path: 'dist' | |
| - name: Release | |
| if: ${{ env.APP_UPDATE_NEEDED == 'true' }} | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| title: ${{ env.APP_NAME }} AppImage ${{ env.APP_VERSION }} | |
| automatic_release_tag: latest | |
| prerelease: false | |
| files: | | |
| dist/ | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} |