Skip to content

Commit

Permalink
use nix for release
Browse files Browse the repository at this point in the history
  • Loading branch information
nkitsaini committed Mar 29, 2024
1 parent 419dd24 commit 3c2001d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release_apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.5'
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
tag=$(cat pubspec.yaml | grep '^version:' | sed 's/^version:\s*\(.*\)\s*$/\1/g')
echo "app_tag=$tag" >> $GITHUB_ENV
echo "Setting app tag as $tag"
echo "From github ${{ env.app_tag }} "
- run: flutter pub get
- run: flutter test
- run: flutter build apk --release
- run: nix flake check
- run: nix develop --command flutter pub get
# Enable when test is written
# - run: nix develop --command flutter test
- run: nix develop --command flutter build apk --release
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 3c2001d

Please sign in to comment.