diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2e3992..92ceb2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,9 @@ jobs: release: name: Version Bump and Release runs-on: ubuntu-latest - + permissions: + contents: write + id-token: write steps: - uses: actions/checkout@v4 with: @@ -52,7 +54,7 @@ jobs: - name: Commit version change run: | - git config --global user.email "github-tracker-bot@taplytics.com" + git config --global user.email "foundation-admin@devcycle.com" git config --global user.name "DevCycle Automation" git add ./lib/devcycle-ruby-server-sdk/version.rb git commit -m "Release ${{steps.prepare-release.outputs.next-release-tag}}" @@ -69,15 +71,7 @@ jobs: bundler-cache: true - name: Publish to RubyGems - run: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem build *.gemspec - gem push *.gem - env: - GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" + uses: rubygems/release-gem@v1 if: inputs.prerelease != true && inputs.draft != true - uses: DevCycleHQ/release-action/create-release@v2.3.0 diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 812f50b..eeb66de 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -17,7 +17,7 @@ jobs: matrix: ruby-version: [ '3.1.0', '3.2.0', '3.3.0' ] env: - DEVCYCLE_SERVER_SDK_KEY: ${{ secrets.DEVCYCLE_SERVER_SDK_KEY_UNIT_TESTS }} + DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash steps: - uses: actions/checkout@v4 - name: Set up Ruby diff --git a/spec/api/devcycle_api_spec.rb b/spec/api/devcycle_api_spec.rb index 3e22ba9..b0a0ce6 100644 --- a/spec/api/devcycle_api_spec.rb +++ b/spec/api/devcycle_api_spec.rb @@ -80,11 +80,11 @@ # @return [Variable] describe 'get_variable_by_key test' do it 'should work' do - result = @api_instance.variable(@user, "ruby-example-tests", false) + result = @api_instance.variable(@user, "test", false) expect(result.isDefaulted).to eq false expect(result.value).to eq true - result = @api_instance.variable_value(@user, "ruby-example-tests", true) + result = @api_instance.variable_value(@user, "test", true) expect(result).to eq true end end