【问题标题】:is it possible to get cocopods session in GitHub CI workflow automatic是否可以自动在 GitHub CI 工作流程中获取 cocopods 会话
【发布时间】:2021-12-30 17:13:32
【问题描述】:

我在 GitHub Actions 工作,将组件推送到 cocoapods,但 cocoapods 需要在推送 lib 之前获得会话。交互过程是 cocoapods 发送电子邮件并单击电子邮件中的链接。但问题是我处于自动工作流程中。每次发布组件时我都无法单击电子邮件。我想安静地、自动地获得会话。可能吗?或者我必须点击 cocopods 发送的电子邮件中的链接?这是工作流脚本:

name: validate
on: [push]
jobs:
  unit-tests:
    runs-on: macos-latest
    strategy:
      matrix:
        destination:
          [
            'platform=iOS Simulator,name=iPhone 12 Pro',
          ]
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v2
      - name: Run Tests
        run: |-
          cd Example
          xcodebuild test -scheme SwiftAudio-Example -destination "${destination}" -enableCodeCoverage YES
        env:
          destination: ${{ matrix.destination }}
          
      - name: Get Sesssion
        run: pod trunk register ${{ secrets.COCOPOD_GMAIL }} ${{ secrets.COCOPOD_USERNAME }} --verbose
      - name: Push Repo to Cocoapods
        run: pod trunk push SwiftAudioEx.podspec --allow-warnings

【问题讨论】:

    标签: ios cocoapods


    【解决方案1】:

    解决方案是使用 CocoaPods 访问令牌: https://fuller.li/posts/automated-cocoapods-releases-with-ci/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-14
      • 2021-05-23
      • 2016-03-07
      • 1970-01-01
      • 2022-10-21
      • 2019-09-29
      相关资源
      最近更新 更多