Skip to content

tim661811/onedrive-to-github-documentation-uploader

Repository files navigation

onedrive-to-github-documentation-uploader

How to setup for Docker

  1. Clone Docker image from Docker hub

  2. Make shure to change the following enviroment variables to reflect your settings
    GITHUB_USERNAME=input_your_username_here
    GITHUB_PASSWORD=input_your_password_here
    REPO_NAME=input_repo_name
    REPO_LINK=github.com/input_username_of_git_repo/input_repo_name.git

  3. Map your onedrive directory containing all you documents to /mnt/hgfs/Onedrive/doc. This will make shure the docker container is able to see the documents.

This will result in a command like this:
docker run -d --name container_name -e GITHUB_USERNAME='input_your_username_here' -e GITHUB_PASSWORD='input_your_password_here' -e REPO_NAME='input_repo_name' -e REPO_LINK='github.com/input_username_of_git_repo/input_repo_name.git' -v '/path/to/documents/on/host:/mnt/hgfs/Onedrive/doc:ro tim661811/onedrive-to-github-documentation-uploader
Once executed it will create the container with the specified settings.

NOTE: you may have to run the container twice on the first use

How to setup without Docker (using npm)

  1. Clone repository from Github

  2. Run npm install

  3. Add a .env file with the following content:
    GITHUB_USERNAME=input_your_username_here
    GITHUB_PASSWORD=input_your_password_here
    REPO_NAME=input_repo_name
    REPO_LINK=github.com/input_username_of_git_repo/input_repo_name.git
    Change the text after the '=' signs to reflect you settings.

  4. Change the PATH_TO_ONEDRIVE_DOCS variable to the path of the directory containing all your documentation.

You can now run the app using npm start

NOTE: you may have to run the app twice on the first use

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published