From f24fbf5b0d76f183677c3be18e2fa1e6a75ec3ef Mon Sep 17 00:00:00 2001 From: cranci <100066266+cranci1@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:13:39 +0100 Subject: [PATCH] test build.yml --- .github/workflows/build.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) 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