https://github.com/pseudomuto/githubpushlib
A simple library for programmatically pushing files to github
https://github.com/pseudomuto/githubpushlib
Last synced: 11 months ago
JSON representation
A simple library for programmatically pushing files to github
- Host: GitHub
- URL: https://github.com/pseudomuto/githubpushlib
- Owner: pseudomuto
- License: mit
- Created: 2013-09-25T21:37:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T22:57:01.000Z (almost 10 years ago)
- Last Synced: 2024-11-16T22:49:28.887Z (over 1 year ago)
- Language: C#
- Size: 582 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Push Lib
[](https://travis-ci.org/pseudomuto/githubpushlib)
A simple library to programmatically push files to GitHub. The idea is to specify a file (or
embedded resource) and have that file pushed to a specific repo at a specified path.
## Installation
The project is distributed as a NuGet Package...
Install-Package GitHubPushLib
## Usage
var service = new ContentService(token);
var file = new DiskFile("Files/content_file.gif");
var target = new FileTarget(owner, repo, file.Name);
service.PushFile(file, target, "pushing file via GitHubPushLib");
For a working demo, check out the [Sample App]...
[Sample App]: https://github.com/pseudomuto/githubpushlib/tree/master/src/SampleApp