generated from NIAEFEUP/workshop-ci-24-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rubuy-74/feature/cd
Best CD Action Ever Made in the History of Human Kind
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|