diff --git a/.github/workflows/set-user-agent.yml b/.github/workflows/cd.yml similarity index 65% rename from .github/workflows/set-user-agent.yml rename to .github/workflows/cd.yml index a08089f8a..eb9674a60 100644 --- a/.github/workflows/set-user-agent.yml +++ b/.github/workflows/cd.yml @@ -3,12 +3,14 @@ # it takes pull request name # and automatically commit it as a package version # pull request name should always be a version of a new release +# +# After version bump publishing Cocoapods release -name: set-user-agent +name: cd on: pull_request: - branches: [ main ] + branches: [ main, develop ] env: PACKAGE_VERSION: ${{ github.event.pull_request.title }} @@ -27,4 +29,12 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Set User Agent + tagging_message: $PACKAGE_VERSION + skip_checkout: true + + - name: Publish to CocoaPod register + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + pod trunk push WalletConnectSwiftV2.podspec