.github/workflows/main.yml in cocoapods-embed-flutter-0.5.0 vs .github/workflows/main.yml in cocoapods-embed-flutter-0.5.1

- old
+ new

@@ -8,10 +8,15 @@ pull_request: branches: [ main ] paths-ignore: - '*.md' workflow_dispatch: + inputs: + release: + description: Create release + required: false + type: boolean env: RUBY_VER: 2.6 concurrency: @@ -60,11 +65,11 @@ default_bump: false dry_run: true cd: name: Build and Publish - if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.ci.outputs.release + if: (github.event_name == 'push' && needs.ci.outputs.release) || (github.event_name == 'workflow_dispatch' && github.event.inputs.release) needs: ci runs-on: ubuntu-latest steps: - name: Checkout repository @@ -116,11 +121,11 @@ chmod 0600 $HOME/.gem/credentials printf -- "---\n:github: Bearer ${GITHUB_TOKEN}\n" > $HOME/.gem/credentials gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem env: GITHUB_TOKEN: ${{ github.token }} - OWNER: ${{ github.actor }} + OWNER: ${{ github.repository_owner }} - name: Publish to RubyGems if: steps.conventional_changelog.outputs.skipped == 'false' run: | mkdir -p $HOME/.gem @@ -137,9 +142,5 @@ with: token: ${{ github.token }} tag: ${{ steps.conventional_changelog.outputs.tag }} body: ${{ steps.conventional_changelog.outputs.changelog }} artifacts: '*.gem' - - - name: Publish to cocoapods plugins - if: steps.conventional_changelog.outputs.skipped == 'false' - run: bundle exec rake publish