diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eded18b..b4b5906 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,19 +39,4 @@ jobs: env: DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }} DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }} - run: bundle exec rspec spec/integration - - # in order to release use conventional commits - # $ git commit --allow-empty -m "chore: release 1.0.0" -m "Release-As: 1.0.0" && git push - # this will open a new PR with the changelog and bump the version - # Release Please will assume that you are using Conventional Commit messages. - # - # The most important prefixes you should have in mind are: - # - # fix: which represents bug fixes, and correlates to a SemVer patch. - # feat: which represents a new feature, and correlates to a SemVer minor. - # feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major. - - uses: google-github-actions/release-please-action@v4 - id: release - if: github.ref == 'refs/heads/main' - + run: bundle exec rspec spec/integration \ No newline at end of file diff --git a/.github/workflows/publish-gem.yaml b/.github/workflows/publish-gem.yaml index 43a5781..31e97b3 100644 --- a/.github/workflows/publish-gem.yaml +++ b/.github/workflows/publish-gem.yaml @@ -2,7 +2,7 @@ name: Publish Ruby Gem on: release: - types: [created] + types: [published] permissions: contents: read @@ -23,6 +23,19 @@ jobs: - name: Install dependencies run: bundle install + # in order to release use conventional commits + # $ git commit --allow-empty -m "chore: release 1.0.0" -m "Release-As: 1.0.0" && git push + # this will open a new PR with the changelog and bump the version + # Release Please will assume that you are using Conventional Commit messages. + # + # The most important prefixes you should have in mind are: + # + # fix: which represents bug fixes, and correlates to a SemVer patch. + # feat: which represents a new feature, and correlates to a SemVer minor. + # feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major. + - uses: google-github-actions/release-please-action@v4 + id: release + if: github.ref == 'refs/heads/main' - name: Publish to RubyGems run: | @@ -34,4 +47,3 @@ jobs: gem push *.gem env: GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}" - if: ${{ steps.release.outputs.release_created }}