Skip to content

chore(deps): bump activesupport from 6.1.7.3 to 6.1.7.6 in /example/ios_app #168

chore(deps): bump activesupport from 6.1.7.3 to 6.1.7.6 in /example/ios_app

chore(deps): bump activesupport from 6.1.7.3 to 6.1.7.6 in /example/ios_app #168

Workflow file for this run

name: CI/CD
on:
push:
branches: [ main ]
paths-ignore:
- '*.md'
pull_request:
branches: [ main ]
paths-ignore:
- '*.md'
workflow_dispatch:
inputs:
release:
description: Create release
required: false
type: boolean
env:
RUBY_VER: 2.6
concurrency:
group: ci/cd-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
if: github.event_name != 'workflow_dispatch'
uses: ./.github/workflows/codeql-analysis.yml
permissions:
actions: read
contents: read
security-events: write
ci:
name: Run Tests
runs-on: macos-latest
outputs:
release: ${{ steps.check_version_bump.outputs.release_type != '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VER }}
- name: Install dependencies
run: |
bundle config deployment true
bundle install
- name: Run tests
run: bundle exec rake specs
- name: Install Flutter
uses: subosito/flutter-action@v2.10.0
- name: Setup Flutter for ios
run: |
flutter precache --ios
- name: Test example app
run: bundle exec rake demo
- name: Check version bump
id: check_version_bump
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ github.token }}
default_bump: false
dry_run: true
cd:
name: Build and Publish
if: (github.event_name == 'push' && needs.ci.outputs.release == 'true') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true')
needs: [ci, analyze]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '17'
- name: Setup action config
run: npm install
working-directory: .github/config
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VER }}
- name: Install dependencies
run: |
bundle config deployment true
bundle install
- name: Conventional Changelog Action
id: conventional_changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ github.token }}
git-message: 'chore(CHANGELOG): update for {version}'
git-user-name: ${{ github.actor }}
git-user-email: soumya.mahunt@gmail.com
skip-version-file: true
release-count: 0
pre-changelog-generation: '.github/config/pre_changelog_hook.js'
config-file-path: '.github/config/config.js'
- name: Build gem
if: steps.conventional_changelog.outputs.skipped == 'false'
run: gem build *.gemspec
- name: Publish to GitHub Package Registry
if: steps.conventional_changelog.outputs.skipped == 'false'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
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.repository_owner }}
- name: Publish to RubyGems
if: steps.conventional_changelog.outputs.skipped == 'false'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem push *.gem
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
- name: Create GitHub Release
if: steps.conventional_changelog.outputs.skipped == 'false'
uses: ncipollo/release-action@v1
with:
token: ${{ github.token }}
tag: ${{ steps.conventional_changelog.outputs.tag }}
body: ${{ steps.conventional_changelog.outputs.changelog }}
artifacts: '*.gem'