diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d9d2c79..4d244f7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,38 +7,7 @@ on: branches: [main] jobs: - deploy: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - uses: actions/checkout@v4 - - name: Check Git Status - run: git status - - name: Tag and Push Gem - id: tag-and-push-gem - uses: discourse/publish-rubygems-action@v3 - 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}} - RELEASE_COMMAND: git diff && rake release --backtrace - - 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 }} - notify_on_failure: - runs-on: ubuntu-latest - needs: [deploy] - if: ${{ failure() && github.ref == 'refs/heads/main' }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - steps: - - uses: slackapi/slack-github-action@v1.25.0 - with: - payload: | - { - "text": "${{ github.repository }}/${{ github.ref }}: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - } + call-workflow-from-shared-config: + uses: rubyatscale/shared-config/.github/workflows/cd.yml@main + secrets: inherit + diff --git a/Gemfile.lock b/Gemfile.lock index b76a1d5..3717b9a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -76,11 +76,11 @@ GEM method_source (1.0.0) minitest (5.19.0) netrc (0.11.0) - nokogiri (1.16.3-arm64-darwin) + nokogiri (1.18.1-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.3-x86_64-darwin) + nokogiri (1.18.1-x86_64-darwin) racc (~> 1.4) - nokogiri (1.16.3-x86_64-linux) + nokogiri (1.18.1-x86_64-linux-gnu) racc (~> 1.4) packs-specification (0.0.10) sorbet-runtime @@ -99,7 +99,7 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - racc (1.7.3) + racc (1.8.1) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest