Skip to content

Commit

Permalink
Update mobile-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Sep 15, 2024
1 parent 232d980 commit 1dbf265
Showing 1 changed file with 43 additions and 28 deletions.
71 changes: 43 additions & 28 deletions .github/workflows/mobile-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@ name: Mobile Release
on:
workflow_dispatch:

permissions:
contents: write

jobs:
get-latest-tag:
runs-on: ubuntu-latest
outputs:
latest_tag: ${{ steps.get_tag.outputs.LATEST_TAG }}
steps:
- name: Get latest release tag
id: get_tag
run: |
latest_tag=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r .tag_name)
echo "Latest tag is $latest_tag"
echo "::set-output name=LATEST_TAG::$latest_tag"
build:
name: Build
uses: ./.github/workflows/mobile.yml
Expand All @@ -12,38 +27,38 @@ jobs:

release-android:
name: Release androidBuild
needs: build
needs: [get-latest-tag, build]
runs-on: ubuntu-latest
steps:
- name: Download Android artifact
uses: actions/download-artifact@main
with:
name: androidBuild
- name: Upload androidBuild to release
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
file: JSEngine-release.apk
asset_name: FNF-JS-Engine-android.apk
overwrite: false
- name: Download Android artifact
uses: actions/download-artifact@main
with:
name: androidBuild
- name: Upload androidBuild to release
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.get-latest-tag.outputs.latest_tag }}
file: JSEngine-release.apk
asset_name: FNF-JS-Engine-android.apk
overwrite: false

release-ios:
name: Release iOSBuild
needs: build
needs: [get-latest-tag, build]
runs-on: ubuntu-latest
steps:
- name: Download iOS artifact
uses: actions/download-artifact@main
with:
name: iOSBuild
- name: Zip For Release
run: zip -r JSEngine-iOS.zip JSEngine.ipa
- name: Upload androidBuild to release
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
file: JSEngine-iOS.zip
asset_name: FNF-JS-Engine-ios.zip
overwrite: false
- name: Download iOS artifact
uses: actions/download-artifact@main
with:
name: iOSBuild
- name: Zip For Release
run: zip -r JSEngine-iOS.zip JSEngine.ipa
- name: Upload iOSBuild to release
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.get-latest-tag.outputs.latest_tag }}
file: JSEngine-iOS.zip
asset_name: FNF-JS-Engine-ios.zip
overwrite: false

1 comment on commit 1dbf265

@mcagabe19
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JordanSantiagoYT with this change mobile port is at releases now

Please sign in to comment.