Skip to content

Building a docsite outside the project folder and committing to branch #26934

Answered by weide-zhou
exoRift asked this question in Actions
Discussion options

You must be logged in to vote

Hi @exorift ,

Thank you for being here! To answer your queries:

  1. yes, you can manipulate the filesystem outside the project folder directory. For github hosted runner, you need to manually create the folder before you cd into.

    • name: Initiate Git
      run: |
      mkdir …/cyclone-engine-pages cd …/cyclone-engine-pages
  2. The default working directory is ‘GITHUB_WORKSPACE’, on ubuntu hosted runner, which typically stands for ‘/home/runner/work/repo/repo’, you can check with command ‘pwd’.

For the step ‘Build Resources’, the ‘npm run build’ command is executed under the GITHUB_WORKSPACE directory NOT ‘cyclone-engine-pages’.

  1. For ‘Commit Docsite’ step, there is no change to commit since npm built in…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants