Skip to content

Commit b438fc3

Browse files
authored
chore: configured push pipeline to upload release assets (#2506)
1 parent e4f34bf commit b438fc3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name-template: 'PSLab Version $NEXT_PATCH_VERSION'
2-
tag-template: 'v$NEXT_PATCH_VERSION'
1+
name-template: 'PSLab Version $RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
33
categories:
44
- title: ':rocket: Features and Enhancements'
55
labels:

.github/workflows/push-event.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,12 @@ jobs:
156156
fi
157157
158158
- name: Run Release Drafter
159+
id: run-release-drafter
159160
uses: release-drafter/release-drafter@v6
160161
with:
161162
version: ${{ steps.android-version.outputs.VERSION_NAME }}
162-
name: 'PSLab Version ${{ steps.android-version.outputs.VERSION_NAME }}'
163-
tag: 'v${{ steps.android-version.outputs.VERSION_NAME }}'
163+
164+
- name: Create and Upload Assets
165+
run: |
166+
echo "${{ steps.android-version.outputs.VERSION_CODE }}" > ./versionCode.txt
167+
gh release upload ${{ steps.run-release-drafter.outputs.tag_name }} apk/pslab-development-release.apk ./versionCode.txt --clobber

0 commit comments

Comments
 (0)