Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Release

on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g., v1.0.0)'
required: true
type: string

permissions:
contents: write
Expand All @@ -23,11 +27,7 @@ jobs:
- name: Create tag
id: tag
run: |
LAST_TAG=$(git describe --tags --match "v[0-9]*.[0-9]*.[0-9]*" --abbrev=0 2>/dev/null || echo "v0.0.0")
VERSION=${LAST_TAG#v}
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
PATCH=$((PATCH + 1))
TAG="v${MAJOR}.${MINOR}.${PATCH}"
TAG="${{ inputs.tag }}"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module aproxy
module github.com/canonical/aproxy

go 1.24.0

Expand Down
Loading