enriikke / gatsby-gh-pages-action

GitHub Action to build and deploy your Gatsby site to GitHub Pages ❤️🎩
MIT License
295 stars 62 forks source link

Working_directory #34

Closed Ronalses closed 3 years ago

Ronalses commented 4 years ago

HI!

I have tried many things to run it in my app directory, but nothing works.

Can't seem to find the working_directory

name: Gatsby Publish

on: push: branches:

defaults: run: shell: bash working-directory: apps/web

jobs: build: runs-on: ubuntu-latest steps:

kenjdavidson commented 4 years ago

At this point I don't think it's possible. I was looking to see if this could convert a /docs folder to the gh-pages branch, but at this point it looks like the Gatsby project has to be at the root.

- project
  |- docs
  |- src
   \ README.md 

With the above folder structure (I think the same as yours) the goal would be to get ./docs/public published to gh-pages instead of ./public published. Is that correct? If so, I think this would be a solid addition.

enriikke commented 3 years ago

Addressed in https://github.com/enriikke/gatsby-gh-pages-action/pull/42 😃