Bump backtraceVersion and update changelog #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Cocoapods | |
on: | |
push: | |
tags: '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
# test is copied pasted from test.yml - do in a clean way in the future | |
# BEGIN COPY PASTE FROM TEST.YML | |
test: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ios, mac, tvos] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sh scripts/install.sh | |
- name: Run test | |
run: fastlane ${{ matrix.platform }} tests | |
pod-lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sh scripts/install.sh | |
- name: Run pod lib lint | |
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/' | |
# END COPY PASTE FROM TEST.YML | |
deploy-cocoapods: | |
runs-on: macos-latest | |
needs: [pod-lint, test] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sh scripts/install.sh | |
- name: Deploy to Cocoapods | |
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 |