Skip to content

Commit

Permalink
Merge pull request #6 from AbdeltwabMF/automation/github-workflow
Browse files Browse the repository at this point in the history
Add github-workflow
  • Loading branch information
AbdeltwabMF authored Feb 3, 2023
2 parents 5f37c9a + d204d16 commit a81f3ef
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---

name: Release

on:
push:
tags:
- 'v[0-9].[0-9].[0-9]'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v3

- name: Setup Flutter environment
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.0'
channel: 'stable'
- run: flutter --version

- name: Install dependencies
run: flutter create --platforms=ios,android .

- name: Build artifacts
run: flutter build apk --build-name=${{github.ref_name}} --release

- name: Release artifacts and source code
uses: ncipollo/release-action@v1
with:
artifacts: build/app/outputs/flutter-apk/app-release.apk
name: ${{github.ref_name}}
makeLatest: true
generateReleaseNotes: true

0 comments on commit a81f3ef

Please sign in to comment.