Skip to content

Commit

Permalink
Using shared cd config (#50)
Browse files Browse the repository at this point in the history
* using shared ci/cd config

* dropping 2.7 in CI
  • Loading branch information
perryqh authored Apr 24, 2024
1 parent 960cea9 commit f51d1b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,8 @@ on:
workflows: [CI]
types: [completed]
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'schedule' }}
steps:
- uses: actions/checkout@v3
- name: Tag and Push Gem
id: tag-and-push-gem
uses: discourse/publish-rubygems-action@v2
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}}
GIT_NAME: ${{secrets.GUSTO_GIT_NAME}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
- name: Create GitHub Release
run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
call-workflow-from-shared-config:
uses: rubyatscale/shared-config/.github/workflows/cd.yml@main
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
ruby:
- 2.7
# See comment comes from https://github.com/ruby/setup-ruby#matrix-of-ruby-versions
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
- "3.0"
Expand Down Expand Up @@ -69,4 +68,4 @@ jobs:
payload: |
{
"text": "${{ github.repository }}/${{ github.ref }}: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GIT
PATH
remote: .
specs:
packwerk-extensions (0.1.10)
packwerk-extensions (0.1.11)
packwerk (>= 2.2.1)
railties (>= 6.0.0)
sorbet-runtime
Expand Down
2 changes: 1 addition & 1 deletion packwerk-extensions.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'packwerk-extensions'
spec.version = '0.1.10'
spec.version = '0.1.11'
spec.authors = ['Gusto Engineers']
spec.email = ['[email protected]']

Expand Down

0 comments on commit f51d1b9

Please sign in to comment.