This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and add APKs to github release (#96)
* Make Flutter Build workflow reusable * provide artifact name via input variable (with default value) * Automatically add build artifacts to github release * workaround for actions/runner#480
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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
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,27 @@ | ||
name: Github Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/flutter_build.yml | ||
secrets: inherit | ||
with: | ||
artifactName: 'release' | ||
|
||
add-artifacts-to-release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: 'release' | ||
|
||
- name: Add artifacts to release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: 'release/*.apk' |