Git Product home page Git Product logo

Comments (2)

philipmjohnson avatar philipmjohnson commented on May 26, 2024 1

Thank you so much! This is exactly what I needed to know.

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024

I think the easiest thing for you to do is, ironically, not to use the action at all: there's an NPM package called gh-pages that can do exactly that.
You can set up a couple of npm scripts and a GH workflow to handle that, here's an example from one of my repos, where I'm deploying the build of a React app to the gh-pages branch:

The point is that if you wanted to do this with git commands, you would need to use git subtree push instead of git push, and my action does not support that. (this gist explains it better)
I want this action to be general-purpose, and not to become too complex. I also believe that there are some actions that can deploy to gh-pages, but I can't tell you which one is better since I'm not using any of them.

from add-and-commit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.