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
- Host: GitHub
- URL: https://github.com/rootmos/release.py
- Owner: rootmos
- Created: 2025-04-19T21:01:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-28T06:23:45.000Z (about 1 year ago)
- Last Synced: 2025-05-04T22:55:32.422Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# release.py
[](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 }}
```