Skip to content

Commit

Permalink
Testing github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-John-paystack committed Feb 14, 2024
1 parent 5b6ee3d commit c4863f2
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,38 @@ jobs:
cd Sources/PaystackSDK/Core/Service/Subscription
PLIST=secrets.plist
/usr/libexec/PlistBuddy -c "Set PUSHER_API_KEY $PUSH_TOKEN" $PLIST
/usr/libexec/PlistBuddy -c "Print PUSHER_API_KEY" $PLIST
cd ../../../../..
env:
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: ${{ env.version }}
body: ${{ env.body }}

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod trunk push PaystackCore.podspec --allow-warnings
pod trunk push PaystackUI.podspec --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}

- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.version }}
generate_release_notes: true

# - name: Create XCFramework
# uses: unsignedapps/swift-create-xcframework@v2

# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ env.version }}
# release_name: ${{ env.version }}
# body: ${{ env.body }}
#
# - name: Install Cocoapods
# run: gem install cocoapods
#
# - name: Deploy to Cocoapods
# run: |
# set -eo pipefail
# pod trunk push PaystackCore.podspec --allow-warnings
# pod trunk push PaystackUI.podspec --allow-warnings
# env:
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
#

0 comments on commit c4863f2

Please sign in to comment.