File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Website
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ build :
8
+ name : Publish
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-ruby@v1
13
+ with :
14
+ ruby-version : ' 2.7'
15
+ - name : Build and test
16
+ env :
17
+ ALGOLIA_API_KEY : ${{ secrets.ALGOLIA_API_KEY }}
18
+ run : |
19
+ gem install bundler
20
+ bundle install --jobs 4 --retry 3
21
+ bundle exec rake apidocs:gen_version[$GITHUB_REF] site:publish
Original file line number Diff line number Diff line change
1
+ name : Publish Website
2
+ on :
3
+ push :
4
+ branches : [master]
5
+
6
+ jobs :
7
+ build :
8
+ name : Publish
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-ruby@v1
13
+ with :
14
+ ruby-version : ' 2.7'
15
+ - name : Install and publish
16
+ env :
17
+ ALGOLIA_API_KEY : ${{ secrets.ALGOLIA_API_KEY }}
18
+ run : |
19
+ gem install bundler
20
+ bundle install --jobs 4 --retry 3
21
+ bundle exec rake site:publish
Original file line number Diff line number Diff line change 5
5
desc "Fetch a gem version from RubyGems, build the docs"
6
6
task :gen_version , [ :version ] do |t , args |
7
7
version = args [ :version ] || raise ( "A version is required" )
8
+ if version . start_with? ( "v" )
9
+ version = version [ 1 ..-1 ]
10
+ end
8
11
Dir . chdir ( "tmp" ) do
9
12
if !File . exist? ( "graphql-#{ version } .gem" )
10
13
system ( "gem fetch graphql --version=#{ version } " )
You can’t perform that action at this time.
0 commit comments