github-releaser
github-releaser is a command-line tool for creating releases on GitHub.
Installation
pipenv install github-releaser
Usage
Creating a release
To create a release, use the command create-release, e.g.:
github-releaser create-release --account myuser --repository myrepo --tag-name v1.0.10
The example above will create a new release with a name and tag set to v1.0.10 at myuser/myrepo. The option
--release-name is optional, and if not specified the release name will be the same as the value of the --tag-name, in
this case: v1.0.10
To see all the options use: github-releaser create-release --help
Uploading assets
The command upload-assets to add assets to a release. Note that to upload assets a release must have been previously
created.
Give that there is already a release v1.0.10 at myuser/myrepo, it is possible to add assets with the following command:
github-releaser upload-assets --account myuser --repository myrepo --tagname v1.0.10 assets/*.zip
The example above uploads all .zip files from the assets directory to a release v1.0.10 at myuser/myrepo.
To see all the options use: github-releaser upload-assets --help
Commit and push files to a branch
Sometimes it is useful to commit and push new files to a specific branch. One possible scenario is when files are auto-generated during a build in a CI environment, and there is a requirement to include them to a branch. For example:
github-releaser push-files --account myuser --repository myrepo myfile.txt
In this example, a file named myfile.txt is added to the master at myuser/myrepo
To see all the options use: github-releaser push-files --help
GitHub's personal access token
It is required to use a GitHub's personal access token to use the commands described above.
The personal access token can be passed directly in the command line using the option --token or
set to an environment variable called GITHUB_TOKEN.
More information on how to create a GitHub's token can
be found here
Copyright and License
Copyright (c) 2020 Daniel Furtado. Code released under MIT license
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-05-30)
- First release on PyPI.
0.1.1 (2020-06-02)
- Renamed the environment variable to
GITHUB_TOKEN - Updated documentation on how to pass token to
github-releaserand information on how to create the token on GitHub.
0.2.0 (2020-07-09)
- Include command
push-files - Updated documentation
- Minor code cleanup
0.2.1 (2020-08-04)
- Renamed push-file's command flag from
--msgto--m - Minor fixes
Metadata
Release files for github-releaser 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| github-releaser-0.2.1.tar.gz | 9.6 kB | Without provenance | Details for github-releaser-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| github_releaser-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for github_releaser-0.2.1-py2.py3-none-any.whl |
Total release size: 18.7 kB
Release files / github-releaser-0.2.1.tar.gz
| Download URL | github-releaser-0.2.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52772dd78f58ed2545ee102187ae1648b84a7cb7c76da55e4a3c4edc2e14115d
|
|
BLAKE2b-256 checksum How to use checksums |
175510d2c3016303ccb2c49b45c818d18d2b32ce39dcb762c8db4c0fed001989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.1
|
Release files / github_releaser-0.2.1-py2.py3-none-any.whl
| Download URL | github_releaser-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f8567034107a228e78b84539fa6b86187aaf72d0a51bd16bb86e23260a216522
|
|
BLAKE2b-256 checksum How to use checksums |
8205666509afe5416cb3fbb81277b9ea9fd98d6507e6c06b1a192ebd9456c8ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.1
|
Security for github-releaser 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.