Last active
February 9, 2021 14:03
-
-
Save khiav223577/0e9e2ba42f9ac869ba8a489678a46753 to your computer and use it in GitHub Desktop.
Migrating from Travis CI to GitHub Actions
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
# Migrating from Travis CI to GitHub Actions | |
git checkout -b feature/migrate_from_travis_to_github_actions | |
rm .travis.yml | |
ruby -e "File.write('README.md', File.read('README.md').gsub('travis-ci.org', 'github.com').sub('.svg?branch=master', '/workflows/Ruby/badge.svg').sub(/(khiav223577\/\w+)\)/, '\1/actions)'))" | |
git add . | |
git commit -m 'remove travis' | |
ruby -e "Dir['gemfiles/*'].each{|s| File.write(s, File.read(s).gsub(/gem 'simplecov'\r?\n/, %{gem 'simplecov', '< 0.18'\n})) }" | |
git add . | |
git commit -m 'downgrades simplecov because of codeclimate/test-reporter#413' | |
mkdir .github | |
cp -r ../deep_pluck/.github/workflows/ .github/ | |
git add . | |
git commit -m 'copy workflows from khiav223577/deep_pluck#42' | |
------------ | |
記得加 secrtes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment