Skip to content

chore: bump version to 0.4.45 #71

chore: bump version to 0.4.45

chore: bump version to 0.4.45 #71

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v0.2.0)'
required: true
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from tag
id: version
run: |
if [ -n "${{ github.event.inputs.tag }}" ]; then
echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
else
echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
fi
- name: Create source tarball
run: |
VERSION="${{ steps.version.outputs.tag }}"
TARBALL="agent-factory-${VERSION}.tar.gz"
# Create a clean tarball excluding dev/runtime files
tar -czf "/tmp/${TARBALL}" \
--exclude='.git' \
--exclude='node_modules' \
--exclude='.env' \
--exclude='.openclaw-state' \
--exclude='agent-factory/agents/*' \
--exclude='agent-factory/workspaces/*' \
--exclude='agent-factory/projects/*' \
--exclude='agent-factory/templates/custom/*' \
--exclude='libs' \
--exclude='ui/.next' \
--exclude='*.log' \
-C "$(pwd)/.." \
"$(basename "$(pwd)")"
mv "/tmp/${TARBALL}" "${TARBALL}"
echo "tarball=${TARBALL}" >> "$GITHUB_OUTPUT"
id: tarball
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
${{ steps.tarball.outputs.tarball }}
scripts/install.sh