diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml index 9c4971e..f2a91a1 100644 --- a/.github/workflows/buildapp.yml +++ b/.github/workflows/buildapp.yml @@ -13,7 +13,7 @@ on: type: string decrypted_youtube_url: description: "The direct URL to the decrypted YouTube ipa" - default: "" + default: "https://27man-my.sharepoint.com/:u:/g/personal/qn____27man_onmicrosoft_com/EfZLHsAs_CpGtyzPhAi7Dy8BtGjTxYif-DAmW0-rxzE4sA?download=1" required: true type: string youtube_version: @@ -114,30 +114,10 @@ jobs: name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }} path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }} if-no-files-found: error - - - name: Create Release - if: ${{ inputs.create_release }} - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - UYOU_VERSION: ${{ inputs.uyou_version }} - YOUTUBE_VERSION: ${{ inputs.youtube_version }} + + - name: Gh Release + uses: softprops/action-gh-release@v0.1.14 + if: startsWith(github.ref, 'refs/tags/') with: - tag_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }}) - release_name: v${{ env.YOUTUBE_VERSION }}-${{ env.UYOU_VERSION }}-(${{ github.run_number }}) - draft: true - prerelease: false + files: ./main/packages/*.ipa - - name: Upload Release Asset - if: ${{ inputs.create_release }} - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - UYOU_VERSION: ${{ inputs.uyou_version }} - YOUTUBE_VERSION: ${{ inputs.youtube_version }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }} - asset_name: uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa - asset_content_type: application/vnd.debian.binary-package