forked from arthurnn/memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from vinted/feature/release-shopify-gem
Use shopify fork
- Loading branch information
Showing
6 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build and release ruby gem | ||
|
||
on: | ||
pull_request: | ||
branches: [ 1-0-stable ] | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-release-pipeline: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get -y install memcached libsasl2-dev | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- run: bundle exec ruby test/setup.rb | ||
- run: bundle exec rake | ||
- name: Build | ||
id: build | ||
if: success() | ||
run: | | ||
bundle exec rake build | ||
echo "::set-output name=gem_version::v$(bundle exec rake version)" | ||
- name: Release | ||
if: success() && github.ref == 'refs/heads/1-0-stable' | ||
run: | | ||
mkdir -p $HOME/.gem | ||
touch $HOME/.gem/credentials | ||
chmod 600 $HOME/.gem/credentials | ||
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials | ||
gem push pkg/vinted-memcached-*.gem -V | ||
env: | ||
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}" | ||
|
||
- name: Tag repo with new gem version | ||
if: success() && github.ref == 'refs/heads/1-0-stable' | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{ github.token }} | ||
script: | | ||
github.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: "refs/tags/${{ steps.build.outputs.gem_version }}", | ||
sha: context.sha | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Memcached | ||
VERSION = '1.8.5' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
require_relative 'lib/memcached/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "memcached" | ||
s.version = "1.9.0" | ||
s.name = "vinted-memcached" | ||
s.version = Memcached::VERSION | ||
|
||
s.authors = ["Arthur Neves", "Evan Weaver"] | ||
s.email = "[email protected]" | ||
|