Skip to content

Commit

Permalink
Update deploy.yml (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
melekr authored May 5, 2023
1 parent 2e4f32e commit 6d455b0
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,54 +43,3 @@ jobs:
run: sh scripts/deploy.sh
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

build-dynamic-frameworks:
runs-on: macos-latest
needs: [pod-lint, test]

strategy:
matrix:
ENABLE_BITCODE: [YES, NO]
SWIFT_EMBEDDED: [YES, NO]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Install cocoapods and rome
run: gem install cocoapods cocoapods-rome

- name: Run pod install with Podfile from workflows directory
run: cp .github/workflows/Podfile . && pod install
env:
ENABLE_BITCODE: ${{ matrix.ENABLE_BITCODE }}
SWIFT_EMBEDDED: ${{ matrix.SWIFT_EMBEDDED }}
BACKTRACE_VERSION: ${{ github.ref_name }}

- name: Tar files to preserve file permissions
run: tar -cvzf Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz Rome/ dSYM/

- uses: actions/upload-artifact@v3
with:
name: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}
path: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz

upload-to-github-release:
runs-on: ubuntu-latest
needs: build-dynamic-frameworks

steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
id: download
with:
path: artifacts/

- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ steps.download.outputs.download-path }}
draft: true
verbose: env.ACTIONS_STEP_DEBUG

0 comments on commit 6d455b0

Please sign in to comment.