Skip to content

Commit

Permalink
update the CI to use v3 image and rake task (#1047)
Browse files Browse the repository at this point in the history
* update the CI to use v3 image and rake task

* specify ruby version
  • Loading branch information
johrstrom authored Dec 27, 2024
1 parent 800e7a1 commit bc5699c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ jobs:
- name: checkout
uses: actions/checkout@v3

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Make Html
run: |
export OOD_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
docker run --rm -v "${PWD}:/doc" -u "$(id -u):$(id -g)" -e OOD_BRANCH ohiosupercomputer/ood-doc-build:v2.0.0 make html
rake build
- name: Publish to the test repo
run: GITHUB_TOKEN=${{ secrets.OSC_WIAG_PUB_REPO_TOKEN }} /bin/bash push.sh "ood-documentation-test"
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def user_group
end

def image
'ohiosupercomputer/ood-doc-build:v2.0.0'
'ohiosupercomputer/ood-doc-build:v3.0.0'
end

def docker?
Expand Down
4 changes: 2 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down Expand Up @@ -405,7 +405,7 @@ def rstjinja(app, docname, source):

def setup(app):
app.connect('source-read', rstjinja)
app.add_stylesheet('css/custom.css')
app.add_css_file('css/custom.css')

# Context used for jinja template
doc_context = {
Expand Down

0 comments on commit bc5699c

Please sign in to comment.