Skip to content

Commit

Permalink
version change update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
harikris001 authored Aug 28, 2024
1 parent d87e6ae commit bf01387
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,45 @@ on:

jobs:
build:
name: Build and Release new apk
name: Stable version Release new apk
runs-on: ubuntu-latest
defaults:
run:
working-directory: jam_it

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
- name: Checkout Branch
uses: actions/checkout@v3

- name: Setup Java SDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'

- uses: subosito/flutter-action@v2
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --release --split-per-abi

- name: Install Dependencies
run: flutter pub get

- name: Build apk for platfroms
run: flutter build apk --release --split-per-abi

- name: Extract version from pubspec.yaml
run: |
version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r')
echo VERSION=%version% >> %GITHUB_ENV%
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "jam_it/build/app/outputs/apk/release/*"
tag: v0.0.1
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}




0 comments on commit bf01387

Please sign in to comment.