Merge branch 'main' into releases/v4.0.0

This commit is contained in:
Naterfute
2025-09-16 01:26:01 -07:00

View File

@@ -3,8 +3,6 @@ on:
push:
branches:
- 'releases/*'
tags:
- 'releases/*'
permissions:
packages: write
@@ -18,6 +16,14 @@ jobs:
with:
fetch-depth: 0
- name: Extract version from branch name
id: extract_version
run: |
# Extract version from branch name (e.g., releases/v4.0.0 -> v4.0.0)
BRANCH_NAME=${GITHUB_REF#refs/heads/}
VERSION=${BRANCH_NAME#releases/}
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Login to GHCR
uses: docker/login-action@v3
with:
@@ -34,7 +40,7 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
ghcr.io/${{ github.repository }}:${{ steps.extract_version.outputs.version }}
ghcr.io/${{ github.repository }}:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha