Skip to content

Commit

Permalink
Merge pull request #1 from rubuy-74/feature/cd
Browse files Browse the repository at this point in the history
Best CD Action Ever Made in the History of Human Kind
  • Loading branch information
rubuy-74 committed Apr 3, 2024
2 parents 7076a0c + 0b41837 commit 0173780
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: 'Create new release'

on:
push:
branches:
- main

jobs:
create_apk:
name: Create apk
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cinescope
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter: cinescope/pubspec.yaml
flutter-version: 3.13.7
cache: true
- run: flutter build apk
- name: Upload final apk
uses: actions/upload-artifact@v4
with:
name: app-release.apk
path: cinescope/build/app/outputs/apk/release

deploy_release:
name: Deploy Release
runs-on: ubuntu-latest
needs: create_apk
defaults:
run:
working-directory: ./cinescope
steps:
- name: Download the .apk
uses: actions/download-artifact@v4
with:
name: app-release.apk
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: app-release.apk



1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 'Check for static errors'

on:
pull_request:
push:
branches:
- main
Expand Down

0 comments on commit 0173780

Please sign in to comment.