Skip to content

Commit

Permalink
Merge pull request #1 from Spooky12/ci/release-action
Browse files Browse the repository at this point in the history
ci(release-action): Add release action
  • Loading branch information
Spooky12 authored Jul 18, 2024
2 parents dee1e34 + 8cd2383 commit 0d249de
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Realease version

on:
push:
tags:
- "v*.*.*"

jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clone repo
uses: actions/checkout@v4
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ inputs.FLUTTER_VERSION }}
channel: 'stable'
- name: Get dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --split-per-abi
- name: GH Release
uses: softprops/action-gh-release@v2
with:
files: build/app/outputs/flutter-apk/*.apk
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: retro_launcher
description: "A custom Android launcher created with Flutter, with a retro video game-inspired UI"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1
version: 0.0.1+1

environment:
sdk: '>=3.4.3 <4.0.0'
Expand Down

0 comments on commit 0d249de

Please sign in to comment.