-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Automatically attach debug APKs when a release is created
- Loading branch information
1 parent
d0e8805
commit 705361e
Showing
3 changed files
with
45 additions
and
2 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,32 @@ | ||
name: Attach Debug APKs To Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Set tag | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//} | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ env.GITHUB_REF }} | ||
- name: Build | ||
env: | ||
RELEASE_TAG: ${{ steps.vars.outputs.tag }} | ||
run: ./gradlew assembleDebug | ||
- name: Attach debug APKs to release | ||
env: | ||
RELEASE_TAG: ${{ steps.vars.outputs.tag }} | ||
run: >- | ||
hub release edit | ||
-m "" | ||
-a ./app/build/outputs/apk/debug/termux-tasker-$RELEASE_TAG-debug.apk | ||
$RELEASE_TAG |
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