Files
osmedeus/.github/workflows/manual-release.yaml
T
j3ssie 344e6117ca feat: enhance target handling and improve release/install workflows
- Add file target support to heuristics with automatic TargetSpace derivation and comprehensive unit tests for file path parsing
- Display target space folder location during workflow execution for both module and flow runs
- Fix IP address handling in URL parsing to correctly identify and extract root domain for IP targets
- Add goreleaser --mark-latest flag to manual release workflow for consistent release tagging
- Improve install binary help text and add progress feedback for silent mode installations
- Replace deprecated --list-registry-binaries with --list-registry-direct-fetch and --list-registry-nix-build examples
2026-01-21 17:20:52 +08:00

51 lines
1.3 KiB
YAML

name: Manual Release
on:
workflow_dispatch:
permissions:
contents: write
jobs:
manual-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get latest release tag
id: get-tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(gh release view --json tagName -q .tagName)
echo "Latest release tag: $TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Delete existing release assets
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${{ steps.get-tag.outputs.tag }}"
gh release view "$TAG" --json assets -q '.assets[].name' | while read -r asset; do
echo "Deleting asset: $asset"
gh release delete-asset "$TAG" "$asset" --yes
done
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean --skip=validate --mark-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ steps.get-tag.outputs.tag }}