Comments (3)
This has mostly been achieved with the workflow in 6302ddc, save one issue.
After the render
action, the new PDF is committed to main branch, but the build-deploy
action does not then carry the updated PDF across to gh-pages
branch.
@nrennie, how do we update the Render PDF commit instructions so that the file is committed to gh-pages
instead of main
(or we could commit to both, if possible)?
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add RSS-data-vis-guide.pdf
git commit -m "Render PDF"
git push
Update: The PDF is deployed, but it seems to always be one version behind. Not sure, then, if the solution is to commit to gh-pages
, as perhaps the gh-pages
version will be replaced by the older main
version once the build-deploy
action runs.
I'm not sure what is wrong with the action to make it so that the build-deploy
job doesn't take account of the Render PDF commit from the previous job.
from datavisguide.
Checking out the gh-pages
branch before committing might be enough? e.g.
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git checkout gh-pages
git add RSS-data-vis-guide.pdf
git commit -m "Render PDF"
git push
from datavisguide.
Thanks for the suggestion, but it didn't work unfortunately. I keep getting the following error:
error: pathspec 'gh-pages' did not match any file(s) known to git
I tried (in a0017ab) to add the file to main
and then add the file to the gh-pages
branch using the following:
git checkout gh-pages
git checkout main RSS-data-vis-guide.pdf
git commit -m "Render PDF"
git push
It worked locally in the command line, but the GH action doesn't seem to like it.
from datavisguide.
Related Issues (8)
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 datavisguide.