diff --git a/.github/workflows/get-apk-an-release-it-here.yml b/.github/workflows/get-apk-an-release-it-here.yml index ad03695..2ad5a1c 100644 --- a/.github/workflows/get-apk-an-release-it-here.yml +++ b/.github/workflows/get-apk-an-release-it-here.yml @@ -10,31 +10,39 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - get-asset: + get-asset-and-release: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: 🔃 Checkout the code - uses: actions/checkout@v2 + #- name: 🔃 Checkout the code + # uses: actions/checkout@v2 - - name: ⤵️ Get Release APK - uses: dsaltares/fetch-gh-release-asset@0.0.7 - with: - repo: lucasplacentino/App-BA2-Project-Ecommerce - file: app-release-unsigned.apk - target: BA2/INFOH2001/app/release/app-release-unsigned.apk - #token: ${{ secrets.GITHUB_TOKEN }} + #- name: ⤵️ Get Release APK + # uses: dsaltares/fetch-gh-release-asset@0.0.7 + # with: + # repo: lucasplacentino/App-BA2-Project-Ecommerce + # file: app-release-unsigned.apk + # target: BA2/INFOH2001/app/release/app-release-unsigned.apk + # #token: ${{ secrets.GITHUB_TOKEN }} + + #- run: chown -R 1001:1001 /BA2/INFOH2001/app/release/app-release-unsigned.apk - - run: chown -R 1001:1001 /BA2/INFOH2001/app/release/app-release-unsigned.apk + - name: ⤵️ Get release asset APK from other repo + uses: robinraju/release-downloader@v1.3 + with: + repository: lucasplacentino/App-BA2-Project-Ecommerce + latest: true + fileName: "app-release-unsigned.apk" + out-file-path: "app/release" - - name: 📦 Release APK + - name: 📦 Release APK on this repo id: release-apk uses: softprops/action-gh-release@v1 with: - files: BA2/INFOH2001/app/release/app-release-unsigned.apk + files: app/release/app-release-unsigned.apk draft: false prerelease: false name: Release-${{ github.run_id }}.${{ github.run_attempt }}