diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f100258..511ae025 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,24 +37,13 @@ jobs: with: name: ipa-artifact - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload IPA to Release - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Node.js + uses: actions/setup-node@v3 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./AnimeGen.ipa - asset_name: AnimeGen.ipa - asset_content_type: application/octet-stream + node-version: '14' + + - name: Install automatic-releases + run: npm install -g automatic-releases + + - name: Create Release + run: automatic-releases --token ${{ secrets.GITHUB_TOKEN }} --files './AnimeGen.ipa' --tag ${{ github.ref }} --title "Release ${{ github.ref }}" --prerelease false