Skip to content

Commit

Permalink
Fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenrixon committed Feb 11, 2019
1 parent 6397456 commit 9aac8bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .yardopts
@@ -1 +1 @@
--no-private --output-dir docs lib/**/*.rb --markup-provider=redcarpet --markup=markdown - README.md
--no-private --markup-provider=redcarpet --markup=markdown lib/**/*.rb - README.md
2 changes: 1 addition & 1 deletion sidekiq-unique-jobs.gemspec
@@ -1,6 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path("lib", __FILE__)
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require "sidekiq_unique_jobs/version"
Expand Down
4 changes: 2 additions & 2 deletions update_docs.sh
Expand Up @@ -15,7 +15,7 @@ rake yard

git checkout gh-pages

if [[ "$(git branch | grep \* | cut -d ' ' -f2)" != "gh-pages" ]]; then
if [[ "$(git branch | grep \* | cut -d ' ' -f2)" != "gh-pages" ]]; then
git checkout -b gh-pages
fi;

Expand All @@ -28,7 +28,7 @@ mv doc/* ./
echo "Sending new documentation to github"
git add --all
git commit -a -m 'Update documentation'
git push --force
git push --set-upstream origin gh-pages --force

if [[ $stash_created == 1 ]]; then
git stash pop
Expand Down

0 comments on commit 9aac8bf

Please sign in to comment.