Skip to content

Commit

Permalink
feature: build app using CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahullkumr committed Jan 29, 2024
1 parent 9920e46 commit 5a3d921
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
- master
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '12'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64

- run: flutter build apk --release

- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKENEXCELR }}

0 comments on commit 5a3d921

Please sign in to comment.