From 7a8f470c6a2db260af853f2ff4db77a7499e39f8 Mon Sep 17 00:00:00 2001 From: "Daniel P. Clark" <6ftdan@gmail.com> Date: Wed, 21 Oct 2026 18:22:01 +0000 Subject: [PATCH] Remove the tag-driven release workflow Publishing is done by hand with `gem push`; the workflow, its README badge and the `release_check` rake task are gone. `rake build` stays as a plain packaging helper. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01LquamEUPHNaNMzZW6tZz8r --- .github/workflows/release.yml | 44 ----------------------------------- README.md | 3 +-- Rakefile | 11 +-------- 3 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 321ae13..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Release - -# Tag the commit with the version (for example `v0.1.0`, matching SQRL::VERSION) to build -# all six gems and push them to rubygems.org. Requires the RUBYGEMS_API_KEY secret. -on: - push: - tags: ["v*"] - -jobs: - release: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: "3.3" - bundler-cache: true - - name: Check the tag matches SQRL::VERSION - run: | - version=$(ruby -r ./gems/sqrl-core/lib/sqrl/version.rb -e 'print SQRL::VERSION') - test "v$version" = "${GITHUB_REF_NAME}" || { echo "tag ${GITHUB_REF_NAME} != v$version"; exit 1; } - - name: Gem specs - run: bundle exec rake spec:gems - - name: Build gems - run: | - mkdir -p pkg - for gem in sqrl-core sqrl-rack omniauth-sqrl sqrl-rails devise-sqrl sqrl-client; do - (cd "gems/$gem" && gem build "$gem.gemspec" --output "../../pkg/$gem-${GITHUB_REF_NAME#v}.gem") - done - ls -l pkg - - name: Push to rubygems.org (dependency order) - env: - GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} - run: | - for gem in sqrl-core sqrl-rack omniauth-sqrl sqrl-rails devise-sqrl sqrl-client; do - gem push "pkg/$gem-${GITHUB_REF_NAME#v}.gem" - done - - name: GitHub release with the built gems - uses: softprops/action-gh-release@v2 - with: - files: pkg/*.gem - generate_release_notes: true diff --git a/README.md b/README.md index d05f78f..1741233 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@

CI - Release MIT License Ruby 3.1 or newer Maintained @@ -90,7 +89,7 @@ bundle exec rake spec:gems # every gem's specs bundle exec rake spec:integration # boots each example app over HTTPS and drives it with the bot client and a headless browser bundle exec rspec spec/interop # the conformance suite against the Rust reference server bundle exec rubocop # lint (enforced in CI) -bundle exec rake build # packages the six gems into pkg/; `rake release_check` lists them +bundle exec rake build # packages the six gems into pkg/ ``` Each application under [`examples/`](examples) is a complete, independently bundled diff --git a/Rakefile b/Rakefile index 3edae4f..c85cdce 100644 --- a/Rakefile +++ b/Rakefile @@ -28,7 +28,7 @@ task spec: ["spec:gems", "spec:integration"] task default: "spec:gems" -desc "Build every gem into pkg/ (what the release workflow pushes)" +desc "Build every gem into pkg/" task :build do require "fileutils" require_relative "gems/sqrl-core/lib/sqrl/version" @@ -39,12 +39,3 @@ task :build do end end end - -desc "Check that every gem builds cleanly and, when GITHUB_REF_NAME is set, that the tag matches SQRL::VERSION" -task release_check: :build do - Dir["pkg/*.gem"].each { |g| puts "built #{g}" } - tag = ENV.fetch("GITHUB_REF_NAME", nil) - if tag && tag != "v#{SQRL::VERSION}" - abort "tag #{tag} does not match SQRL::VERSION #{SQRL::VERSION}" - end -end