-
Notifications
You must be signed in to change notification settings - Fork 13
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 #133 from authzed/fix-release-process
Fix release process
- Loading branch information
Showing
8 changed files
with
24 additions
and
61 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
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 |
---|---|---|
|
@@ -12,14 +12,22 @@ jobs: | |
- name: "Set up Ruby" | ||
uses: "ruby/setup-ruby@v1" | ||
with: | ||
ruby-version: "3.3.0" | ||
bundler-cache: true | ||
- name: "Install deps" | ||
run: | | ||
gem install bundler | ||
bundle install | ||
- name: "Build and publish to Rubygems" | ||
uses: "cadwallion/[email protected]" | ||
# Set the version at release time | ||
- name: Write release version | ||
run: | | ||
VERSION=${GITHUB_REF_NAME#v} | ||
echo Version: $VERSION | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Set version within package | ||
run: "bundle exec bump set ${VERSION} --no-commit" | ||
- name: "Build the package" | ||
run: "bundle exec rake build" | ||
- name: "Publish the package" | ||
run: "bundle exec gem push pkg/*.gem" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
RUBYGEMS_API_KEY : "${{ secrets.RUBYGEMS_API_KEY }}" | ||
GEM_HOST_API_KEY : "${{ secrets.RUBYGEMS_API_KEY }}" |
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,4 +1,7 @@ | ||
lib/authzed/api/v0/ | ||
lib/authzed/api/v1alpha1/ | ||
pkg | ||
.bundle | ||
vendor | ||
# This is intentionally omitted. | ||
Gemfile.lock |
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,7 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
# NOTE: this tells bundle to look at the gemspec | ||
# file for information about dependencies etc. | ||
gemspec | ||
|
||
group :development, :test do | ||
gem "rake" | ||
end |
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