Skip to content

Bump version to 0.25.0 #38

Bump version to 0.25.0

Bump version to 0.25.0 #38

Workflow file for this run

name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run tests before release
run: |
sudo apt-get update -qq && sudo apt-get install -qq -y bats
bats test/hdi.bats
- name: Get version from tag
id: version
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
# Build a minimal tarball with just the hdi script and LICENSE
- name: Create minimal tarball
run: |
tag="${GITHUB_REF#refs/tags/}"
mkdir -p "dist/hdi-${tag}"
cp hdi LICENSE "dist/hdi-${tag}/"
tar -czf "dist/hdi-${tag}.tar.gz" -C dist "hdi-${tag}"
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
files: dist/hdi-*.tar.gz
generate_release_notes: true