Publish tags
Some checks failed
Build Android / build (push) Successful in 8m0s
Build Android / deploy (push) Failing after 0s

This commit is contained in:
2023-06-30 12:29:32 +02:00
parent add100146d
commit c5fdab5ba2

View File

@@ -35,9 +35,31 @@ jobs:
curl -k -u "${{ secrets.NEXTCLOUD_USERNAME }}:${{ secrets.NEXTCLOUD_PASSWORD }}" -T "app/build/outputs/apk/release/app-release.apk" "https://nextcloud.zobrist.me/remote.php/dav/files/deploy/TichuCounter/latest/app-release.apk"
curl -k -u "${{ secrets.NEXTCLOUD_USERNAME }}:${{ secrets.NEXTCLOUD_PASSWORD }}" -T "app/build/outputs/bundle/release/app-release.aab" "https://nextcloud.zobrist.me/remote.php/dav/files/deploy/TichuCounter/latest/app-release.aab"
- uses: actions/upload-artifact@v3
with:
name: latestTichuCounterBuild
path: |
app/build/outputs/apk/release/app-release.apk
app/build/outputs/bundle/release/app-release.aab
- uses: https://github.com/ravsamhq/notify-slack-action@v2
if: always()
with:
status: ${{ job.status }} # required
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
deploy:
runs-on: ubuntu-latest-android
if: startsWith(gitea.ref, 'refs/tags/')
steps:
- name: Get build files
- uses: actions/download-artifact@v3
with:
name: latestTichuCounterBuild
- name: Deploy tagged build to Nextcloud
run: |
curl -k -u "${{ secrets.NEXTCLOUD_USERNAME }}:${{ secrets.NEXTCLOUD_PASSWORD }}" -T "app/build/outputs/apk/release/app-release.apk" "https://nextcloud.zobrist.me/remote.php/dav/files/deploy/TichuCounter/tagged/app-release-${{ gitea.ref_name }}".apk"
curl -k -u "${{ secrets.NEXTCLOUD_USERNAME }}:${{ secrets.NEXTCLOUD_PASSWORD }}" -T "app/build/outputs/bundle/release/app-release.aab" "https://nextcloud.zobrist.me/remote.php/dav/files/deploy/TichuCounter/tagged/app-release-${{ gitea.ref_name }}".aab"