Skip to content

ci(aur): run selfmade #8

ci(aur): run selfmade

ci(aur): run selfmade #8

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
HOME: /github/home/
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 ~/.ssh/
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/aur
printf "Host aur.archlinux.org\n\tIdentityFile ~/.ssh/aur\n\tUser aur" >> ~/.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 ~/.ssh/*
- name: Debug
run: |
pwd
(cd && pwd)
pwd
ls -al
ls -al ~/.ssh
- run: cat ~/.ssh/config
- run: ssh-keyscan aur.archlinux.org
- run: ssh -nNtv [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