chore: ready for 1.5.8 #43
Workflow file for this run
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: Release for Linux | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+" | |
| jobs: | |
| build_deb: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install build-essential | |
| run: | | |
| sudo apt update | |
| sudo apt install build-essential | |
| sudo apt install ninja-build | |
| sudo apt install -y libgtk-3-dev libfuse2 | |
| java -version | |
| - name: Install appimagetool | |
| run: | | |
| wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" | |
| chmod +x appimagetool | |
| mv appimagetool /usr/local/bin/ | |
| - name: Install Flutter | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Prepare Flutter Dependencies | |
| run: | | |
| .flutter/bin/flutter config --no-analytics | |
| .flutter/bin/flutter pub get | |
| - name: Build Linux Tarball | |
| run: | | |
| .flutter/bin/flutter build linux --release | |
| - name: Package Linux Tarball | |
| run: 7z a -r "../../../../../build/app/watermeter-linux-release-amd64.zip" * | |
| working-directory: build/linux/x64/release/bundle | |
| - name: Upload Linux Tarball | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Watermeter_Linux | |
| path: build/app/watermeter-linux-release-amd64.zip | |
| - name: Release Linux Tarball | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: build/app/watermeter-linux-release-amd64.zip | |
| prerelease: false | |
| tag_name: ${{ github.event.inputs.tag_name }} | |
| token: ${{ secrets.RELEASE_TOKEN }} | |
| - name: Build Appimage | |
| run: | | |
| export PATH=$PATH:$PWD/.flutter/bin/ | |
| dart pub global activate fastforge | |
| export PATH=$PATH:$HOME/.pub-cache/bin | |
| fastforge package --platform=linux --targets=appimage | |
| - name: Find Appimage Executable | |
| run: | | |
| export dir=$(find ./ -name watermeter-*) | |
| cp $dir ./watermeter.Appimage | |
| - name: Upload Appimage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Watermeter_Appimage | |
| path: watermeter.Appimage | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: watermeter.Appimage | |
| prerelease: false | |
| tag_name: ${{ github.event.inputs.tag_name }} | |
| token: ${{ secrets.RELEASE_TOKEN }} |