Replaces the manual curl-based release creation with the standard action, consistent with other Gitea repos. Also bumps checkout to @v4. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update -q
|
|
sudo apt-get install -y \
|
|
libgtk-3-dev \
|
|
libgstreamer1.0-dev \
|
|
libgstreamer-plugins-base1.0-dev \
|
|
libgstreamer-plugins-bad1.0-dev \
|
|
gstreamer1.0-plugins-good \
|
|
libpam0g-dev \
|
|
ninja-build \
|
|
meson \
|
|
libglib2.0-dev
|
|
|
|
- name: Install Rust stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Build release
|
|
run: |
|
|
meson setup builddir --buildtype=release
|
|
meson compile -C builddir
|
|
|
|
- name: Bundle artifacts
|
|
run: |
|
|
mkdir -p dist
|
|
cp builddir/ahfail-module.so dist/
|
|
cp builddir/libahfail_pam.so dist/
|
|
cp builddir/ahfail-display dist/
|
|
tar czf ahfail-linux-x86_64.tar.gz -C dist .
|
|
|
|
- name: Upload release asset
|
|
# Requires a GITEA_TOKEN secret with write:repository scope.
|
|
# Create it in repo Settings → Secrets.
|
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
|
with:
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
server_url: ${{ github.server_url }}
|
|
tag_name: ${{ github.ref_name }}
|
|
name: ${{ github.ref_name }}
|
|
files: ahfail-linux-x86_64.tar.gz
|