From bc33dfbfce229c48ccfaaa9b84cd5d0124b306e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 8 Feb 2025 09:23:52 +0000 Subject: [PATCH 1/2] chore: go live (#2) --- .github/workflows/create-releases.yml | 27 --------------------------- .github/workflows/publish-gem.yml | 8 ++++++-- .github/workflows/release-doctor.yml | 1 - bin/check-release-environment | 4 ---- 4 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/create-releases.yml diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml deleted file mode 100644 index 776187bc..00000000 --- a/.github/workflows/create-releases.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Create releases -on: - schedule: - - cron: '0 5 * * *' # every day at 5am UTC - push: - branches: - - main - -jobs: - release: - name: release - if: github.ref == 'refs/heads/main' && github.repository == 'OneBusAway/ruby-sdk' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: stainless-api/trigger-release-please@v1 - id: release - with: - repo: ${{ github.event.repository.full_name }} - stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} - - - name: Update RubyDocs - if: ${{ steps.release.outputs.releases_created }} - run: | - curl -i -H "Content-Type: application/json" -X POST -d '{"repository":{"url":"https://github.com/OneBusAway/ruby-sdk"}}' https://www.rubydoc.info/checkout diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index 9bc44b01..68104592 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -1,9 +1,13 @@ -# workflow for re-running publishing to rubygems.org in case it fails for some reason -# you can run this workflow by navigating to https://www.github.com/OneBusAway/python-sdk/actions/workflows/publish-gem.yml +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to rubygems.org in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/OneBusAway/python-sdk/actions/workflows/publish-gem.yml name: Publish Gem on: workflow_dispatch: + release: + types: [published] + jobs: publish: name: publish diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 0b399e09..054e6662 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -18,6 +18,5 @@ jobs: run: | bash ./bin/check-release-environment env: - STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }} RUBYGEMS_HOST: ${{ secrets.ONEBUSAWAY_SDK_RUBYGEMS_HOST || secrets.RUBYGEMS_HOST }} GEM_HOST_API_KEY: ${{ secrets.ONEBUSAWAY_SDK_GEM_HOST_API_KEY || secrets.GEM_HOST_API_KEY }} diff --git a/bin/check-release-environment b/bin/check-release-environment index 3594ba6a..b4ea958d 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,10 +2,6 @@ errors=() -if [ -z "${STAINLESS_API_KEY}" ]; then - errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.") -fi - if [ -z "${GEM_HOST_API_KEY}" ]; then errors+=("The ONEBUSAWAY_SDK_GEM_HOST_API_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets") fi From b513330356230ab3b72d60af44c9824898b7ba0e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 8 Feb 2025 09:24:06 +0000 Subject: [PATCH 2/2] release: 0.1.0-alpha.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 20 ++++++++++++++++++++ lib/onebusaway/version.rb | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c4762802..ba6c3483 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1-alpha.0" + ".": "0.1.0-alpha.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..b01cddae --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +## 0.1.0-alpha.1 (2025-02-08) + +Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/OneBusAway/ruby-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1) + +### Features + +* **api:** manual updates ([abc9c0b](https://github.com/OneBusAway/ruby-sdk/commit/abc9c0b66ea0fd32a92910fec72b5fabab99ba37)) +* **api:** manual updates ([61057c6](https://github.com/OneBusAway/ruby-sdk/commit/61057c65a7e57ca5437f68da4e1fcc30e7e8b2ed)) +* bundle typing manifests with gem release ([1afa8a1](https://github.com/OneBusAway/ruby-sdk/commit/1afa8a194c360da3b37503092f7c8456e03d24e7)) + + +### Chores + +* configure new SDK language ([266bd2f](https://github.com/OneBusAway/ruby-sdk/commit/266bd2f4d358742de78435b6ada3dbeeb32ae037)) +* do not git ignore `bin/` ([4ced9bf](https://github.com/OneBusAway/ruby-sdk/commit/4ced9bf4d69c5320848225c14d7f3b83f3599802)) +* fully qualify `Array` and `Hash` in rbs files to avoid collisions ([06f502d](https://github.com/OneBusAway/ruby-sdk/commit/06f502d2bc257c3216e02f19805c1cd01513b457)) +* go live ([#2](https://github.com/OneBusAway/ruby-sdk/issues/2)) ([bc33dfb](https://github.com/OneBusAway/ruby-sdk/commit/bc33dfbfce229c48ccfaaa9b84cd5d0124b306e4)) +* **internal:** codegen related update ([ebb7020](https://github.com/OneBusAway/ruby-sdk/commit/ebb7020b858108ef98a6b8f13704cb71b8ab6f83)) diff --git a/lib/onebusaway/version.rb b/lib/onebusaway/version.rb index 84727aec..895f73bd 100644 --- a/lib/onebusaway/version.rb +++ b/lib/onebusaway/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Onebusaway - VERSION = "0.0.1-alpha.0" + VERSION = "0.1.0-alpha.1" end