Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsangwan01 committed Jul 7, 2024
1 parent 6c23bcf commit b40ab67
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
52 changes: 20 additions & 32 deletions .github/workflows/release_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,27 @@ jobs:
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Get version
- 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: Get App Version
id: app_version
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml'
- name: Print AppVersion
run: echo "AppVersion=${{ steps.app_version.outputs.result }}"

# 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/*/*
- name: Github Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.app_version.outputs.result }}
files: |
dist/*/*
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"libcrypto",
"libgtk",
"libusb",
"mikefarah",
"nullptr",
"oneplus",
"softprops",
Expand Down

0 comments on commit b40ab67

Please sign in to comment.