An open API service indexing awesome lists of open source software.

https://github.com/rootmos/release.py

Create GitHub releases based on a .version file
https://github.com/rootmos/release.py

Last synced: about 1 year ago
JSON representation

Create GitHub releases based on a .version file

Awesome Lists containing this project

README

          

# release.py

[![Release](https://github.com/rootmos/release.py/actions/workflows/release.yaml/badge.svg)](https://github.com/rootmos/release.py/actions/workflows/release.yaml)

Create GitHub releases based on a `.version` file:
```
VERSION_MAJOR=0
VERSION_MINOR=3
VERSION_PATCH=0
VERSION_PRERELEASE=
```

## Example workflow
```yaml
name: Release
on:
push:
ignore-tags:
- "releases/**"

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Install release.py
run: pipx install .

- run: release release.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```