gh-pages deployment issue, job duplicates directory name and fails #608
-
gh-pages deployment fails with next error: My repository failed job
I'm trying to deploy ReactApp at Github and besides deploy Python-Flask backend hosted at Azure and back-app has its automatically generated job yml. But for front-app I followed this answer and manually added second job in yml because I need to provide env.variables. My backend deployment succeeds but front-app constantly fails because of duplicated path Here is my yml and package.json but there is no any extra mentioning of that directory...
and my file structure
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's likely that the directory doesn't exist at the root level where the action runs. By the looks of your directory structure you probably need to modify the folder input to be - name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_KEY }}
BRANCH: gh-pages
FOLDER: front-app/dist
Also two other things to note:
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: front-app/dist
|
Beta Was this translation helpful? Give feedback.
It's likely that the directory doesn't exist at the root level where the action runs. By the looks of your directory structure you probably need to modify the folder input to be
front-app/dist
as that seems to be where your application gets built.Also two other things to note:
JamesIves/[email protected]
, if you point directly to the release branch your workflow will cease to operate if I ever remove or push some broken co…