-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with rsync and build file path #102
Comments
I cloned down your repository to test this, I think the issue is that your build script in your In order to fix this can you try changing the following line to https://github.com/excelerondesign/documentation/blob/master/.github/workflows/main.yml#L36 Let me know if that helps! |
Woah, thanks for the fast response! rsync: change_dir "/home/runner/work/documentation/documentation//website/build" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
The deployment encountered an error. ❌
##[error]The process 'rsync' failed with exit code 23 I'm wondering why it inserts that unnamed directory and then looks for the |
That's because Can you add the following in your build step and run it again? I want to make sure that the
|
Aha, I think I know the issue here. This is because you have two jobs named
Additionally if you see the site deploy correctly but you don't see your changes you may need to use the |
Hmmm, that didn't do it. name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Set email
run: git config --global user.email "${{ secrets.adminemail }}"
- name: Set username
run: git config --global user.name "${{ secrets.adminname }}"
- name: npm install command
run: cd website && npm install
- name: Run build command
run: cd website && npm run build
- name: Checkout
uses: actions/checkout@v1
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: website/build # The folder the action should deploy. I'm getting the same error with the I don't know if this changes anything, but there is a could of lines at the end of the error message, maybe this sheds some light? Like the node run error? rsync -q -av --progress website/build/. gh-action-temp-deployment-folder --exclude .git --exclude .github
rsync: change_dir "/home/runner/work/documentation/documentation//website/build" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
The deployment encountered an error. ❌
##[error]The process 'rsync' failed with exit code 23
Completed Deployment ✅
##[error]Node run failed with exit code 1 |
Re: adding the > @ build /home/runner/work/documentation/documentation/website
> docusaurus-build
generate.js triggered...
sitemap.js triggered...
Site built successfully. Generated files in 'build' folder.
README.md
build
core
i18n
node_modules
package-lock.json
package.json
pages
sidebars.json
siteConfig.js
static |
Ah sorry, don't include the checkout step before the deploy step. Otherwise you're going to override your changes. Try this: name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Set email
run: git config --global user.email "${{ secrets.adminemail }}"
- name: Set username
run: git config --global user.name "${{ secrets.adminname }}"
- name: npm install command
run: cd website && npm install
- name: Run build command
run: cd website && npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: website/build # The folder the action should deploy. I don't think |
Just tested this again in my cloned repo. If you want the documentation files to deploy to the root you'll need to change the config so https://github.com/JamesIves/documentation/blob/master/.github/workflows/main.yml This will result in this: https://github.com/JamesIves/documentation/tree/gh-pages Hope that helps! |
I was just about to post about that, haha |
Describe the bug
While the action is processing, everything goes fine until near the end of the process it says:
Similar to issue #84
Reproduce
I'm not sure the exact steps to reproduce this, but my workflow files can be found here: 🔗
Expected behavior
I expected it to move into the folder
.../documentation/build
then deploy as expectedScreenshots
Error is same as #84 but I can provide screen shots if necessary, too.
Additional Comments
The text was updated successfully, but these errors were encountered: