Skip to content

Commit 217a09b

Browse files
committed
GHA Publish to Dropbox
1 parent fd456c9 commit 217a09b

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/on_push.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@ jobs:
3131
mkdir -p ./app/build/_release/android-http-server
3232
mv ./app/build/outputs/apk/release/app-release-unsigned.apk ./app/build/_release/android-http-server/android-http-server-latest-unsigned.apk
3333
mv ./cli/build/libs/cli-all.jar ./app/build/_release/android-http-server/android-http-server-cli-fatjar-latest.jar
34-
- name: Push release to another repo
35-
uses: cpina/github-action-push-to-another-repository@2ebe0cc15fc6a8e63c3658c119525bf1aead4418
36-
env:
37-
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Upload APK to Dropbox
35+
uses: deka0106/upload-to-dropbox@v2.0.0
3836
with:
39-
source-directory: ./app/build/_release/
40-
user-name: 'piotrpolak'
41-
destination-github-username: 'piotrpolak'
42-
destination-repository-name: 'android-http-server-release'
43-
user-email: piotr@polak.ro
44-
target-branch: main
37+
dropbox_access_token: ${{ secrets.DROPBOX_TOKEN }}
38+
src: ./app/build/_release/android-http-server/android-http-server-latest-unsigned.apk
39+
dest: /android-http-server/
40+
- name: Upload CLI jar to Dropbox
41+
uses: deka0106/upload-to-dropbox@v2.0.0
42+
with:
43+
dropbox_access_token: ${{ secrets.DROPBOX_TOKEN }}
44+
src: ./app/build/_release/android-http-server/android-http-server-cli-fatjar-latest.jar
45+
dest: /android-http-server/
4546
- name: Cleanup Gradle Cache
4647
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
4748
# Restoring these files from a GitHub Actions cache might cause problems for future builds.

0 commit comments

Comments
 (0)