Skip to content

Commit

Permalink
Updated action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAma999 committed Mar 5, 2021
1 parent cb0dee4 commit 3b775f0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/swift2.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Create Release
name: Test and Create Release

# Create XCFramework when a version is tagged
on:
push:
tags: [master]
branches: [ master ]
pull_request:
branches: [ master ]

env:
XCODE_VER: 12.4
Expand Down Expand Up @@ -35,14 +37,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
steps:
- name: Check out LittleBluetooth
- name: Check out LittleBlueTooth
uses: actions/checkout@v2
- name: Build XCFrameworks
run: |
set -euo pipefail
sudo xcode-select -s /Applications/Xcode_${XCODE_VER}.app
cd .github/workflows
./build_xcframework.sh
carthage build --no-skip-current --use-xcframeworks
cd Carthage/Build
cp ../../LICENSE .
zip -9r LittleBlueTooth.xcframeworks.zip *.xcframework LICENSE
- name: Upload files to release draft
Expand All @@ -51,4 +53,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
draft: true
files: Frameworks/LittleBlueTooth.xcframeworks.zip
files: Carthage/Build/LittleBlueTooth.xcframeworks.zip

0 comments on commit 3b775f0

Please sign in to comment.