Skip to content

WIP

WIP #3

Workflow file for this run

name: Upload AUR
on: [push]
#on:
# release:
# types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: generate PKGBUILD
run: |
PACKAGE_NAME=$(grep '^name =' Cargo.toml | sed 's/name = "\(.*\)"/\1/')
VERSION=$(grep '^version =' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
MAINTAINER=$(grep '^authors =' Cargo.toml | sed 's/authors = \[\s*"\(.*\)\s*"\]/\1/')
DESCRIPTION=$(grep '^description =' Cargo.toml | sed 's/description = "\(.*\)"/\1/')
sed -i '1i # Maintainer: ${MAINTAINER}' scripts/ci/PKGBUILD
sed -i 's/^pkgname=.*/pkgname=${PACKAGE_NAME}/' scripts/ci/PKGBUILD
sed -i 's/^pkgver=.*/pkgver=${VERSION}/' scripts/ci/PKGBUILD
sed -i 's/^pkgdesc=.*/pkgdesc=${DESCRIPTION}/' scripts/ci/PKGBUILD
- name: Validate package
uses: heyhusen/archlinux-package-action@v2
with:
path: scripts/ci
updpkgsums: true
srcinfo: true