|
|
@@ -10,7 +10,7 @@ on:
|
|
|
|
|
|
jobs:
|
|
|
build:
|
|
|
- name: Build and Upload Application
|
|
|
+ name: Build and Test Application
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|
|
|
@@ -35,13 +35,18 @@ jobs:
|
|
|
- name: Build FAP Applications
|
|
|
run: ufbt faps
|
|
|
|
|
|
- - name: Debug asset name
|
|
|
- run: echo "Uploading file: metroflip-${{ github.sha }}.fap"
|
|
|
+ - name: Get Release Information
|
|
|
+ id: release
|
|
|
+ run: |
|
|
|
+ REPO="luu176/Metroflip" # Change this to your repository name
|
|
|
+ VERSION="v0.4.0" # Specify your version
|
|
|
+ RELEASE=$(curl -s "https://api.github.com/repos/$REPO/releases/tags/$VERSION")
|
|
|
+ echo "::set-output name=upload_url::$(echo $RELEASE | jq -r .upload_url | sed -e "s/{?name,label}//")"
|
|
|
|
|
|
- - name: Upload FAP to Release
|
|
|
+ - name: Upload FAP to Existing Release
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
with:
|
|
|
- upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
+ upload_url: ${{ steps.release.outputs.upload_url }}
|
|
|
asset_path: /home/runner/.ufbt/build/metroflip.fap
|
|
|
asset_name: metroflip-${{ github.sha }}.fap
|
|
|
asset_content_type: application/octet-stream
|