Skip to content

test realse

test realse #13

Workflow file for this run

name: Build IPA and Release
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Xcode
run: sudo xcode-select --switch /Applications/Xcode_13.2.1.app/Contents/Developer
- name: Make ipabuild.sh executable
run: chmod +x ipabuild.sh
- name: Run ipabuild.sh
run: ./ipabuild.sh
- name: Archive IPA
uses: actions/upload-artifact@v2
with:
name: ipa-artifact
path: build/AnimeGen.ipa
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download IPA Artifact
uses: actions/download-artifact@v2
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 }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AnimeGen.ipa
asset_name: AnimeGen.ipa
asset_content_type: application/octet-stream