Skip to content

Commit

Permalink
ci(aur): run selfmade
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Apr 30, 2024
1 parent af4b3d8 commit abebf1c
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,53 @@ 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:
- uses: ATiltedTree/create-aur-release@v1
with:
package_name: ${{ matrix.name }}
commit_username: GitHub Actions
commit_email: [email protected]
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
- 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 --verbose 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

0 comments on commit abebf1c

Please sign in to comment.