Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: create release workflow file added #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

name: Create Release
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
workflow_dispatch:

jobs:
create_xcframework:
name: Create XCFramework
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Create XCFramework
id: framework_builder
run: |
path_from_script="bin/mktmp.txt"

# if dir already exits delete it before proceed
rm -rf "bin"

#create the dir, since we are deleting it in the previous step
mkdir "bin"

touch $path_from_script

./Scripts/create-xcframework.sh 'NeoPop' $path_from_script

path_to_xcframework=`cat $path_from_script`
file_name=`basename $path_to_xcframework`

rm -f $path_from_script

echo ::set-output name=path_to_xcframework::$path_to_xcframework
echo ::set-output name=file_name::$file_name
- uses: actions/upload-artifact@v3
with:
name: ${{ steps.framework_builder.outputs.file_name }}
path: ${{ steps.framework_builder.outputs.path_to_xcframework }}