From a677e82fc4bff6b6c9bf1e45b48e9dc24e73d5c3 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:59:16 -0400 Subject: [PATCH] ci(release): fix destination directory of builds --- .github/workflows/build-repo.yml | 12 +++++++++++- README.md | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-repo.yml b/.github/workflows/build-repo.yml index e6e0b53..a61c379 100644 --- a/.github/workflows/build-repo.yml +++ b/.github/workflows/build-repo.yml @@ -59,8 +59,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Configure git + run: git config --global --add safe.directory /__w/pacman-repo/pacman-repo + - name: Download and Patch beta PKGBUILDs - if: matrix.repo == 'lizardbyte-beta' + if: matrix.release_name == 'beta' run: | # we don't want any stable packages to be built, so remove them rm -rf pkgbuilds @@ -163,6 +166,13 @@ jobs: build-pacman-repo build + # ensure files are present in the repo + repo_files=$(ls repo) + if [[ -z "${repo_files}" ]]; then + echo "::error:: No files found in repo" + exit 1 + fi + - name: Create/Update GitHub Release if: github.event_name == 'schedule' || github.event_name == 'push' uses: ncipollo/release-action@v1.14.0 diff --git a/README.md b/README.md index c59f0f2..312a9ce 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Server = https://github.com/LizardByte/pacman-repo/releases/latest/download ```conf [lizardbyte-beta] SigLevel = Optional -Server = https://github.com/LizardByte/pacman-repo/releases/beta/download +Server = https://github.com/LizardByte/pacman-repo/releases/download/beta ``` Then, run `sudo pacman -Sy` to update repository.