Build AppImage #2820
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: VSCode AppImage | |
| runs-on: ubuntu-22.04 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install libfuse2 | |
| run: sudo apt-get install -y libfuse2 imagemagick | |
| - name: Build | |
| id: build | |
| uses: valicm/appimage-bash@main | |
| with: | |
| version_url: 'https://code.visualstudio.com/sha/download?build=stable\&os=linux-x64' | |
| version_file: 'resources/app/package.json' | |
| version_bash: 'jq -r .version' | |
| version_icon: 'code.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: ${{ env.APP_VERSION }} | |
| prerelease: false | |
| files: | | |
| dist/ | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} |