Skip to content

ci(aur): run selfmade #10

ci(aur): run selfmade

ci(aur): run selfmade #10

Workflow file for this run

name: Update Arch Linux User Repository (AUR)
on:
push:
branches:
- '*'
tags:
- 'v*'
jobs:
aur-publish:
name: AUR ${{ matrix.name }}
runs-on: ubuntu-latest
container: docker.io/library/archlinux:base-devel
strategy:
fail-fast: false
matrix:
name:
# - website-stalker
- website-stalker-bin
env:
NEW_VERSION: 0.21.0
defaults:
run:
shell: bash --noprofile --norc -eux -o pipefail {0}
steps:
- run: pacman -Syu --needed --noconfirm devtools pacman-contrib git openssh
- name: Set SSH Auth
run: |
mkdir -p /root/.ssh/
ssh-keyscan aur.archlinux.org >> /root/.ssh/known_hosts
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > /root/.ssh/aur
printf "Host aur.archlinux.org\n\tIdentityFile /root/.ssh/aur\n\tUser aur" >> /root/.ssh/config
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
chmod -R 600 /root/.ssh/*
- name: Debug
run: |
pwd
(cd && pwd)
pwd
ls -al
ls -al /root/.ssh
- run: cat /root/.ssh/config
- run: cat /root/.gitconfig
- run: ssh -nNv [email protected]
- run: git clone ssh://[email protected]/${{ matrix.name }}.git .
- name: Bump version
run: |
sed -i "s/^pkgver=.*$/pkgver=$NEW_VERSION/" PKGBUILD
sed -i "s/^pkgrel=.*$/pkgrel=1/" PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
git commit -m "Update to $NEW_VERSION"
- run: git show
- run: extra-x86_64-build