Skip to content

build from /docs directory #1183

Answered by rtreddick
rtreddick asked this question in Q&A
Feb 26, 2023 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

I finally got it to work! Here are the steps I took:

  • change default working-directory for the runner as you suggested

  • pass in a working-directory param to the ruby/setup-ruby action

      - name: Setup Ruby
         uses: ruby/setup-ruby@v1
         with:
           ruby-version: '3.1' # Not needed with a .ruby-version file
           bundler-cache: true # runs 'bundle install' and caches installed gems automatically
        cache-version: 0 # Increment this number if you need to re-download cached gems
        working-directory: '{{ github.workspace }}/docs'
    
  • pass in a path param to actions/upload-pages-artifact action

      - name: Upload artifact
         # Automatically uploads an artifact from the './_site' direc…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@rtreddick
Comment options

Comment options

You must be logged in to vote
2 replies
@rtreddick
Comment options

@mattxwang
Comment options

Answer selected by mattxwang
Comment options

You must be logged in to vote
2 replies
@mattxwang
Comment options

@rtreddick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants