Skip to content

Commit 0609bcc

Browse files
authored
ci: use asdf for readthedocs (#165)
ci: try asdf for readthedocs
1 parent 69c2181 commit 0609bcc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.readthedocs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
commands:
12-
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3 7d2baf1cf37b13e2069d6956105bd0e739499bdb && curl -sSL https://get.rvm.io | bash -s stable
13-
- ~/.rvm/bin/rvm autolibs disable && ~/.rvm/bin/rvm install ruby 3.1.2
14-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" gem install bundler
15-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle install
16-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)
12+
- asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
13+
- asdf install ruby 3.1.2
14+
- asdf global ruby 3.1.2
15+
- gem install bundler
16+
- bundle install
17+
- bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)

0 commit comments

Comments
 (0)