Skip to content

Commit

Permalink
change directory structure of workflow artifacts (#406)
Browse files Browse the repository at this point in the history
* change directory structure of workflow artefacts

* Apply suggestions from code review

to please Max's OCD :P

Co-authored-by: Max Rumpf <[email protected]>

Co-authored-by: Max Rumpf <[email protected]>
  • Loading branch information
h1dden-da3m0n and Maxr1998 authored May 27, 2021
1 parent 0901083 commit 6a6307d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/app-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
run: ./gradlew --no-daemon --info assembleDebug
- name: Split APK release types
run: |
mkdir -p build/jellyfin-publish/release-libre build/jellyfin-publish/release-proprietary;
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-debug.apk build/jellyfin-publish/release-libre/;
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-debug.apk build/jellyfin-publish/release-proprietary/;
mkdir -p build/jellyfin-publish
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-debug.apk build/jellyfin-publish/
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-debug.apk build/jellyfin-publish/
- uses: actions/upload-artifact@v2
with:
name: build-artifacts
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/app-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,21 @@ jobs:
run: ./gradlew --no-daemon --info assembleRelease versionTxt
- name: Split APK release types
run: |
mkdir -p build/jellyfin-publish/release-libre build/jellyfin-publish/release-proprietary;
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-release.apk build/jellyfin-publish/release-libre/;
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-release.apk build/jellyfin-publish/release-proprietary/;
mv app/build/version.txt build/jellyfin-publish/;
mkdir -p build/jellyfin-publish
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-release.apk build/jellyfin-publish/
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-release.apk build/jellyfin-publish/
mv app/build/version.txt build/jellyfin-publish/
- name: Upload release artifacts
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: |
["build/jellyfin-publish/release-libre/*",
"build/jellyfin-publish/release-proprietary/*",
"build/jellyfin-publish/version.txt"]
asset_paths: '["build/jellyfin-publish/*"]'
- name: Upload to repo.jellyfin.org
uses: burnett01/[email protected]
with:
switches: -vrptz
path: build/jellyfin-publish/**/
path: build/jellyfin-publish/
remote_path: /srv/repository/releases/client/android/versions/v${{ env.JELLYFIN_VERSION }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
Expand Down

0 comments on commit 6a6307d

Please sign in to comment.