Coder Social home page Coder Social logo

Comments (2)

JamesIves avatar JamesIves commented on May 11, 2024

Your docs are in one repo, but you want to deploy it to another?

I'd need to have a little bit more context, but I don't see why you couldn't modify the checkout step before this action runs to checkout code from another repository. So long as it gets put in the workspace folder it should work with anything you decide to put in it.

from github-pages-deploy-action.

cormacrelf avatar cormacrelf commented on May 11, 2024

Do you mean:

  1. Checkout multiple repositories into the workspace, using the path option of actions/checkout
  2. Move all the files you want to deploy from one part of the workspace to another, making sure you haven't checked out the target repository in such a way that there are still files there that need to be erased
  3. ??? Read the entire source code of this action to find out how it works
  4. Still not work out what you mean
  5. Try random combinations of workspace checkouts, getting GHA to build in full each time

I haven't done step 5 yet but that would be next.

I would note that on the beta3 branch you can simply provide a GITHUB_REPOSITORY environment variable and it will assemble the .git URL with it. One step.

This is a very popular pattern, not just for private repo blogs, but that's the most common. I know travis has had it for years, because it's useful. I use it to publish multiple pages roots from a single repo.

from github-pages-deploy-action.

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.