Skip to content

update readme

update readme #3

Workflow file for this run

name: Build UMU Sniper Source Runtime
on:
workflow_dispatch:
inputs:
snapshot:
description: 'Override config/sniper.env (example: latest-container-runtime-depot or 3.0.20260218.209091)'
required: false
type: string
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
env:
SNAPSHOT_OVERRIDE: ${{ github.event_name == 'workflow_dispatch' && inputs.snapshot || '' }}
RELEASE_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || format('manual-{0}', github.run_number) }}
REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
GIT_SHA: ${{ github.sha }}
GIT_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Install host build tools
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev devscripts patch python3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build runtime artifacts
run: ./scripts/release-build.sh "$SNAPSHOT_OVERRIDE"
- name: Upload workflow artifacts
uses: actions/upload-artifact@v4
with:
name: umu-sniper-source-${{ env.RELEASE_VERSION }}
path: dist/*
if-no-files-found: error
- name: Create or update GitHub release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
run: |
tag="${GITHUB_REF_NAME}"
if gh release view "$tag" >/dev/null 2>&1; then
gh release upload "$tag" dist/* --clobber
else
gh release create "$tag" dist/* --title "$tag" --generate-notes
fi