Deploy action only appears to work when committing to master branch #493
-
Hi All - I have a rather low skill-level in this arena, but have spent several days experimenting and looking for answers on my own. So, thanks in advance for you help. Application: I am rendering a bookdown manual from markdown files using executables from r-lib. Then these html files are deposited to a gh-pages branch to provision a website. The actions supporting this are located in the master branch and triggered when there is a push to Master. In this version (code below), the rendering and deployment processes work, when someone edits a source .md file in the gh-pages branch and then commits another, unrelated file directly to Master. Code
PROBLEM: We are trying to deploy a branch merge routine where a feature branch is created, files are edited, and committed back to the feature (copy) branch, and the render/deploy actions trigger with a pull request is opened to merge the feature branch with the gh-pages branch. When this code below is implemented in both the gh-pages and the copy feature branch, the action will render, but it doesn't deploy the files to the /doc file. Below is a screenshot of the deploy action report. I have tried various permutations creating and merging duplicates away from the gh-pages branch, but nothing seems to work except actions triggered on Master as shown above. Code
Screenshot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like you're modifying the tree before the commits are made and it's reversing the timeline. Have you tried setting |
Beta Was this translation helpful? Give feedback.
-
Hi @JamesIves - Thanks a million for your help! Your suggestion worked perfectly - thank you. |
Beta Was this translation helpful? Give feedback.
It looks like you're modifying the tree before the commits are made and it's reversing the timeline. Have you tried setting
PRESERVE
totrue
in your workflow? In a future version this option will be toggled on by default.