Comments (11)
This is now available in releases/v3
and versioned as 3.1.0
. Thanks for reporting this!
https://github.com/JamesIves/github-pages-deploy-action/releases/tag/3.1.0
from github-pages-deploy-action.
I'm a little confused about why your workflow is failing as I don't have much insight into what those subsequent steps are doing.
The deployment action does create a temporary work space for a git command it runs which you can see here. Are you requesting that this temp folder gets deleted once the deployment has been completed?
If that's a suitable solution I'm happy to push up a test version for this today.
from github-pages-deploy-action.
Thanks for the quick reply @JamesIves. My only concern is the difference between the output under my "scripts folder before deploy" and "scripts folder after deploy". Do you know of any reason that this would happen? My goal is for this folder to be the same after the deploy as it was before. Hope that makes sense - sorry I'm not sure if this is related to the temp work space.
from github-pages-deploy-action.
I have a theory on this. I'm guessing because it checks out a temporary branch with just the deployment changes prior to pushing is why you're seeing such a large discrepancy here.
I think two things need to happen after the deployment is done.
- It switches back to the base branch (master if it's not specified)
- It needs to delete the temporary deployment folder which is created.
Can you run this workflow again using JamesIves/github-pages-deploy-action@releases/v3-test
? I've pushed up a change which may fix this.
from github-pages-deploy-action.
Thanks again - unfortunately it doesn't look like it fixed it. Here is the latest output. To simplify things I removed the "cache" stuff. The contents of that folder still seems to be different before/after the deploy.
from github-pages-deploy-action.
Oh, I see that you said it switches back to the "base branch". Is that what I configured as BASE_BRANCH here? If so, that's not what I would prefer. It should go back to the branch that was checked out for the build. So, whatever got checked out during the "actions/checkout" branch.
from github-pages-deploy-action.
actions/checkout
checks out the default branch of the repo. Do you know of a git command that switches you back to the default branch?
from github-pages-deploy-action.
From what I can tell here it depends on what event triggered the workflow. Maybe we could use $GITHUB_SHA
here?
from github-pages-deploy-action.
@brockfanning Pushed up another update for this. Let me know if that works for you.
from github-pages-deploy-action.
Looks like that worked! The contents of that folder are the same now before and after the deploy (link to output). π
from github-pages-deploy-action.
Perfect! Let me clean up this PR a little bit first and I'll cut a new release. I'll let you know when that's done so you can revert back to using releases/v3
.
from github-pages-deploy-action.
Related Issues (20)
- remote: Permission denied when publish to anonter repository HOT 4
- Commit fails with "process '/usr/bin/git' failed with exit code 128" HOT 3
- Error: You must provide the action with a folder to deploy.
- This project is now deprecated
- GitHub Actions `set-output` command is deprecated and will be disabled soon HOT 2
- Reporting a vulnerability HOT 1
- `token` not being used sometimes HOT 2
- fatal: A branch named 'main' already exists. HOT 7
- Pushed file asyncapi.html gets renamed to index.html HOT 3
- Can't push folder in project HOT 2
- remote: Permission denied to github-actions[bot] HOT 1
- I have this problem, everyone can help me ? This is for a react project HOT 1
- Git config not found for centos:7 HOT 2
- Action succeeds even when push fails HOT 1
- GitHub Pages re-building with Jekyll despite .nojekyll present HOT 1
- A file is missing or not transferred to github pages HOT 5
- The directory you're trying to deploy named /home/runner/work/RivioxTweaks/RivioxTweaks/dist doesn't exist. HOT 1
- There is nothing to commit. Exiting early⦠HOT 1
- The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 β HOT 3
- fatal: Authentication failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pages-deploy-action.