-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |