Skip to content

Commit 7379fb4

Browse files
committed
claims automatic build9
1 parent db82e26 commit 7379fb4

1 file changed

Lines changed: 3 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -42,41 +42,10 @@ jobs:
4242

4343
- name: Rename APK
4444
run: |
45-
mkdir -p artifacts
46-
cp claimManagement/build/outputs/apk/comoresDev/debug/claimManagement-comoresDev-debug.apk artifacts/claims-comores-test.apk
45+
cp claimManagement/build/outputs/apk/comoresDev/debug/claimManagement-comoresDev-debug.apk claims-comores-test.apk
4746
48-
- name: Generate release timestamp
49-
id: timestamp
50-
run: echo "timestamp=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
51-
52-
- name: Create Release
53-
id: create_release
54-
uses: actions/create-release@v1
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
with:
58-
tag_name: build-${{ steps.timestamp.outputs.timestamp }}
59-
release_name: Comores Build ${{ steps.timestamp.outputs.timestamp }}
60-
draft: false
61-
prerelease: true
62-
body: |
63-
Automated build from branch ${{ github.ref_name }}
64-
Commit: ${{ github.sha }}
65-
Build date: $(date +'%Y-%m-%d %H:%M:%S')
66-
67-
- name: Upload APK as Release Asset
68-
uses: actions/upload-release-asset@v1
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
with:
72-
upload_url: ${{ steps.create_release.outputs.upload_url }}
73-
asset_path: ./artifacts/claims-comores-test.apk
74-
asset_name: claims-comores-test.apk
75-
asset_content_type: application/vnd.android.package-archive
76-
77-
78-
- name: Upload APK as Artifact (backup)
47+
- name: Upload APK
7948
uses: actions/upload-artifact@v4
8049
with:
8150
name: claims-comores-test
82-
path: artifacts/claims-comores-test.apk
51+
path: claims-comores-test.apk

0 commit comments

Comments
 (0)