From e2a6be57fe6a81eedf4f191ff464401a7bab0729 Mon Sep 17 00:00:00 2001 From: Rohit Sangwan Date: Sun, 7 Jul 2024 13:20:43 +0530 Subject: [PATCH] Test AppVersion --- .github/workflows/release_builds.yaml | 50 +++++++++++++++++---------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release_builds.yaml b/.github/workflows/release_builds.yaml index 97029d6..1acb8d7 100644 --- a/.github/workflows/release_builds.yaml +++ b/.github/workflows/release_builds.yaml @@ -8,25 +8,37 @@ jobs: steps: - name: Git Checkout uses: actions/checkout@v3 - - name: Apply Flutter Environment - uses: subosito/flutter-action@v2 - with: - channel: "stable" - architecture: x64 - - name: Install dependencies - run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 - - name: Enable Linux - run: flutter config --enable-linux-desktop - - name: Activate Packaging Tool - run: dart pub global activate flutter_distributor - - name: Build App - run: flutter_distributor release --name bundle --jobs linux - name: Generate App Version id: app_version run: echo "value=$(yq '.version' pubspec.yaml)" >> $env:GITHUB_OUTPUT - - name: Github Release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ steps.app_version.outputs.value }} - files: | - dist/*/* \ No newline at end of file + - name: Print AppVersion + run: echo "AppVersion=${{ steps.app_version.outputs.value }}" + +# jobs: +# linux: +# runs-on: ubuntu-22.04 +# steps: +# - name: Git Checkout +# uses: actions/checkout@v3 +# - name: Apply Flutter Environment +# uses: subosito/flutter-action@v2 +# with: +# channel: "stable" +# architecture: x64 +# - name: Install dependencies +# run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 +# - name: Enable Linux +# run: flutter config --enable-linux-desktop +# - name: Activate Packaging Tool +# run: dart pub global activate flutter_distributor +# - name: Build App +# run: flutter_distributor release --name bundle --jobs linux +# - name: Generate App Version +# id: app_version +# run: echo "value=$(yq '.version' pubspec.yaml)" >> $env:GITHUB_OUTPUT +# - name: Github Release +# uses: softprops/action-gh-release@v1 +# with: +# tag_name: ${{ steps.app_version.outputs.value }} +# files: | +# dist/*/* \ No newline at end of file