Skip to content

Bump version to 0.5.1 #16

Bump version to 0.5.1

Bump version to 0.5.1 #16

Workflow file for this run

name: Build and Release Debian Package
on:
push:
tags:
- 'v*.*.*' # Run on version tags
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed to get all tags for version verification
- name: Set up version variables
run: |
# Extract version from tag
TAG_VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
echo "PACKAGE_VERSION=$TAG_VERSION" >> $GITHUB_ENV
# Make scripts executable
chmod +x build.sh tools/verify-versions.sh
- name: Verify versions match tag
run: |
# Verify the tag matches our package versions
if ! tools/verify-versions.sh; then
echo "::error::Version mismatch detected. Package versions must match git tag."
exit 1
fi
- name: Build package
run: ./build.sh
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
../gecko-controller_*.deb
../gecko-controller_*.buildinfo
../gecko-controller_*.changes
draft: false
prerelease: false
generate_release_notes: true
body: |
Gecko Controller Release ${{ github.ref_name }}
## Installation
```bash
sudo apt update
sudo apt install ./gecko-controller_*.deb
```
Please ensure I2C is enabled on your Raspberry Pi before installation.
For full installation instructions, see the README.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Move build artifacts to workspace
run: |
mkdir -p artifacts
cp ../gecko-controller_*.deb artifacts/
cp ../gecko-controller_*.buildinfo artifacts/
cp ../gecko-controller_*.changes artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: debian-packages
path: artifacts/
if-no-files-found: error