File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update GitHub pages ruby packages
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ update-gh-pages-package :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+ - name : Remove lock file
12
+ run : rm ./Gemfile.lock
13
+ - uses : ruby/setup-ruby@v1
14
+ with :
15
+ ruby-version : ' 3.0' # Not needed with a .ruby-version file
16
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
17
+ - name : Bundle install
18
+ run : bundle install
19
+ - name : Commit
20
+ run : |
21
+ git config --local user.email `git show -s --format='%ae'`
22
+ git config --local user.name ${GITHUB_ACTOR}
23
+ git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
24
+ git add ./Gemfile.lock
25
+ git commit -m "Update GitHub pages ruby packages"
26
+ git push github HEAD:${GITHUB_REF}
You can’t perform that action at this time.
0 commit comments