-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish gems to github; add badges to README.md
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
- Loading branch information
1 parent
c8f7409
commit b72e5fd
Showing
5 changed files
with
61 additions
and
11 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 |
---|---|---|
@@ -1,22 +1,32 @@ | ||
name: Release | ||
|
||
on: | ||
create: | ||
ref_type: tag | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'voxpupuli/voxpupuli-test' | ||
if: github.repository_owner == 'voxpupuli' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby 2.7 | ||
- name: Install Ruby 3.0 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
ruby-version: '3.0' | ||
env: | ||
BUNDLE_WITHOUT: release | ||
- name: Build gem | ||
run: gem build *.gemspec | ||
- name: Publish gem | ||
- name: Publish gem to rubygems.org | ||
run: gem push *.gem | ||
env: | ||
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}' | ||
- name: Setup GitHub packages access | ||
run: | | ||
mkdir -p ~/.gem | ||
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
- name: Publish gem to GitHub packages | ||
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem |
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
begin | ||
require 'simplecov' | ||
require 'simplecov-console' | ||
require 'codecov' | ||
rescue LoadError | ||
else | ||
SimpleCov.start do | ||
track_files 'lib/**/*.rb' | ||
|
||
add_filter '/spec' | ||
|
||
enable_coverage :branch | ||
|
||
# do not track vendored files | ||
add_filter '/vendor' | ||
add_filter '/.vendor' | ||
end | ||
|
||
SimpleCov.formatters = [ | ||
SimpleCov::Formatter::Console, | ||
SimpleCov::Formatter::Codecov, | ||
] | ||
end | ||
|
||
require 'rspec/core' |