From 6ee4b4eab8ba93e1858282391ffee4d8ff45caee Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 14 Nov 2021 15:23:51 -0500 Subject: [PATCH] Revert broken AUR automation --- .github/workflows/aur.yml | 28 ---------------------------- scripts/full-release.sh | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/aur.yml diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml deleted file mode 100644 index 6baf077..0000000 --- a/.github/workflows/aur.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/scripts/full-release.sh b/scripts/full-release.sh index 9d2f1e9..8f014b9 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -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 ..