From fc18212fdbedd572b9403690d53e474fc1fa1828 Mon Sep 17 00:00:00 2001 From: Tilmann Meyer Date: Sun, 26 Jul 2020 00:49:09 +0200 Subject: [PATCH] ci: Auto publish for the AUR (#1360) * ci: Auto publish for the AUR * Add commit username + email to deploy.yml * ci: Use ATiltedTree/create-aur-release After testing with the other action it turns out that they forgot the `-s` `makepkg` flag meaning download all required dependencies. I forked it fixed the issue and added a fix from some other fork that allows for multiple source files. Co-authored-by: Kevin Song --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 24eec2ed..3e14d5eb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -147,3 +147,22 @@ jobs: body_path: RELEASE.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + aur_release: + runs-on: ubuntu-latest + name: Create AUR release + needs: github_release # The -bin version downloads and shasums it + steps: + - name: Build | Publish AUR package + uses: ATiltedTree/create-aur-release@v1 + with: + package_name: starship + commit_username: "Starship Bot" + commit_email: starship.bot.noreply@gmail.com + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + - name: Build | Publish AUR package (-bin version) + uses: ATiltedTree/create-aur-release@v1 + with: + package_name: starship-bin + commit_username: "Starship Bot" + commit_email: starship.bot.noreply@gmail.com + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}