# Linux Kernel Module Cheat

#### 38.19.3. release-upload

After:

- running release-zip

- creating and pushing a tag to GitHub

you can upload the release to GitHub automatically with:

    # export LKMC_GITHUB_TOKEN=<your-token>
    ./release-upload

Source: release-upload

The HEAD of the local repository must be on top of a tag that has been pushed for this to work.

Create `LKMC_GITHUB_TOKEN` under: https://github.com/settings/tokens/new and save it to your `.bashrc`.

The implementation of this script is described at:

- https://stackoverflow.com/questions/5207269/how-to-release-a-build-artifact-asset-on-github-with-a-script/52354732#52354732

- https://stackoverflow.com/questions/38153418/can-someone-give-a-python-requests-example-of-uploading-a-release-asset-in-githu/52354681#52354681