Skip to content

Commit

Permalink
Update get-apk-an-release-it-here.yml
Browse files Browse the repository at this point in the history
v2
  • Loading branch information
LucasPlacentino authored Feb 20, 2022
1 parent ad50939 commit b1bf406
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/get-apk-an-release-it-here.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b1bf406

Please sign in to comment.