Simple tool for autodeploying github projects
Project description
Simple auto-deployment tool based on GitHub API
Requires python >= 3.6
Getting started
# pip install githubdeployment
Then create your own deployment.json
based on provided deployment.example.json
.
# create deployment.py and following lines
from deployment.main import deploy
deploy('/path/to/deployment.json')
Run
# python deployment.py
deployment.json config
block explained
working_branch
- Which branch you want to pull fromaccess_token
- Your access token if repository is private (if repo is not private just leave it blank ) github access tokenspath_to_ssh_key
- Where your deployment key is placed, github deployment keysrepository_path
- Path to root folder of your projectgithub_url
- Github api which will be queried when main.py is activated github api
All config keys are mandatory, make sure all permissions are set for files and directories.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
githubdeployment-1.0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for githubdeployment-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c993e47fdb24a4f4446b2b02b36f4da9dcce9ca64c923cfd7c0d23d9f2882c |
|
MD5 | 866cdead677b96eb664884cff3973240 |
|
BLAKE2b-256 | 88bf1b76dc44313dda0cedcea190feba487739ffe7774d73c1a51ac7bb6c94c7 |