Skip to content

Update main.yml

Update main.yml #7

Workflow file for this run

name: Push to the aur
on:
push:
tags:
- v*
jobs:
aur:
name: Build AUR package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract tag version without 'v'
id: extract_version
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/} | sed 's/^v//')"
- name: Update PKGBUILD with extracted version
run: sed -i "s/pkgver=.*/pkgver=${{ steps.extract_version.outputs.version }}/" PKGBUILD
- name: Push changes to AUR
uses: datakrama/push-aur-action@v1
with:
pkgname: 'kill-net'
git_username: ${{ secrets.GIT_USERNAME }}
git_email: ${{ secrets.GIT_EMAIL }}
private_ssh_key: ${{ secrets.AUR_PRIVATE_SSH_KEY }}
ssh_keyscan_types: rsa