|
|
@@ -44,8 +44,8 @@ jobs:
|
|
|
name: build-output
|
|
|
path: build/
|
|
|
|
|
|
- release:
|
|
|
- name: Create Release
|
|
|
+ upload-fap:
|
|
|
+ name: Upload FAP to Existing Release
|
|
|
needs: build
|
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
runs-on: ubuntu-latest
|
|
|
@@ -60,11 +60,10 @@ jobs:
|
|
|
VERSION=$(grep '^version:' manifest.yml | awk '{print $2}')
|
|
|
echo "VERSION=${VERSION}" >> $GITHUB_ENV
|
|
|
|
|
|
- - name: Upload FAP File to Release
|
|
|
- if: env.create == 'true'
|
|
|
+ - name: Upload FAP to Release
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
with:
|
|
|
- upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
+ upload_url: ${{ secrets.GITHUB_RELEASE_UPLOAD_URL }}
|
|
|
asset_path: build/fap/metroflip-${{ env.VERSION }}.fap
|
|
|
asset_name: metroflip-${{ env.VERSION }}.fap
|
|
|
asset_content_type: application/octet-stream
|