From f31e736181e56768a1488c81fe7cd1c7971d7604 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Tue, 6 Sep 2022 21:07:14 +0600 Subject: [PATCH] cd: run ssh even on job fail --- .github/workflows/spotube-nightly.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/spotube-nightly.yml b/.github/workflows/spotube-nightly.yml index 60f2f176..b26eb1d8 100644 --- a/.github/workflows/spotube-nightly.yml +++ b/.github/workflows/spotube-nightly.yml @@ -39,6 +39,11 @@ jobs: with: name: Spotube-Linux-Bundle path: dist/ + - name: Setup upterm session + if: ${{ failure() }} + uses: lhotari/action-upterm@v1 + with: + limit-access-to-actor: true build_android: runs-on: ubuntu-latest @@ -63,6 +68,11 @@ jobs: name: Spotube-Android-Bundle path: | build/Spotube-android-all-arch.apk + - name: Setup upterm session + if: ${{ failure() }} + uses: lhotari/action-upterm@v1 + with: + limit-access-to-actor: true build_windows: runs-on: windows-latest @@ -100,11 +110,6 @@ jobs: - run: flutter config --enable-macos-desktop - run: flutter pub get - run: dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' - - name: Setup upterm session - uses: lhotari/action-upterm@v1 - with: - limit-access-to-actor: true - - run: flutter build macos - run: du -sh build/macos/Build/Products/Release/spotube.app - run: npm install -g appdmg @@ -114,3 +119,8 @@ jobs: name: Spotube-Macos-Bundle path: | build/Spotube-macos-x86_64.dmg + - name: Setup upterm session + if: ${{ failure() }} + uses: lhotari/action-upterm@v1 + with: + limit-access-to-actor: true