Skip to content

Commit

Permalink
should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 authored Feb 13, 2024
1 parent 3b786b0 commit 3b307f0
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,28 @@ jobs:
with:
name: ipa-artifact

- name: Set up Git
run: git config --global user.email "actions@github.com" && git config --global user.name "GitHub Actions"

- name: Create Release
run: gh release create ${{ github.ref }} './AnimeGen.ipa' --title "Release ${{ github.ref }}" --notes "Release notes for ${{ github.ref }}" --draft false --prerelease false
uses: actions/github-script@v5
with:
script: |
const fs = require('fs');
const content = fs.readFileSync('AnimeGen.ipa');
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
const release = await octokit.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: process.env.GITHUB_REF,
name: `Release ${process.env.GITHUB_REF}`,
body: `Release notes for ${process.env.GITHUB_REF}`,
draft: false,
prerelease: false
});
await octokit.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: release.data.id,
name: 'AnimeGen.ipa',
data: content
});

0 comments on commit 3b307f0

Please sign in to comment.