Publish tags
This commit is contained in:
@@ -35,9 +35,32 @@ 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
|
||||
|
||||
- name: Notify Slack
|
||||
- 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
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user