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 32666b9 commit 365401c
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,46 @@ 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
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" >> ~/.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)
ls -al
ls -al ~/.ssh
- 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

0 comments on commit 365401c

Please sign in to comment.