Revert broken AUR automation

This commit is contained in:
Carson McManus 2021-11-14 15:23:51 -05:00
parent 9a5b0fbf6a
commit 6ee4b4eab8
2 changed files with 14 additions and 28 deletions

View file

@ -1,28 +0,0 @@
name: Publish to AUR
on:
push:
branches:
- master
paths-ignore:
- '**/.gitignore'
- '.vscode/**'
- '**/*.md'
- 'scripts/full-release.sh'
- 'scripts/package-deb.sh'
- 'src/fixtures/**'
jobs:
publish-to-aur:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Archlinux
run: curl -L https://github.com/zaoqi/github-actions-archlinux/raw/master/install.sh | sh
- name: Install dependencies
run: sudo pacman -Syu --noconfirm base-devel git
- name: Configure git
run: |
git config --global user.email "{{ github.actor }}@users.noreply.github.com"
git config --global user.name "{{ github.actor }}"
- name: Publish to AUR
run: ./scripts/publish-aur.sh

View file

@ -76,3 +76,17 @@ if [[ $DRY_RUN == false ]]; then
fi
gh release create "$VERSION" --title "$VERSION" --draft "$BIN_PATH" "./steamguard-cli_$RAW_VERSION-0.deb"
fi
# update PKGBUILD for AUR
if [[ -d "aur" ]]; then
rm -rf aur
fi
git clone ssh://aur@aur.archlinux.org/steamguard-cli-git.git aur
cp PKGBUILD aur/PKGBUILD
cd aur
git commit -m "release $VERSION" PKGBUILD
if [[ $DRY_RUN == false ]]; then
git push
rm -rf aur
fi
cd ..