diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b05bbed..bca3346 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: image: archlinux:latest steps: - name: Install packages - run: pacman -Syy --noconfirm && pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron29 libpulse dpkg unzip xdg-utils python rpm-tools + run: pacman -Syy -q --noconfirm && pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron29 libpulse dpkg unzip xdg-utils python rpm-tools - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/update-build-release.yml b/.github/workflows/update-build-release.yml index 0a1911f..dc116e1 100644 --- a/.github/workflows/update-build-release.yml +++ b/.github/workflows/update-build-release.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Install dependencies - run: pacman -Syy --noconfirm && pacman -S --noconfirm git jq nix python python-requests + run: pacman -Syy -q --noconfirm && pacman -S -q --noconfirm git jq nix python python-requests - name: Checkout uses: actions/checkout@v4 @@ -81,7 +81,7 @@ jobs: upload-release: needs: [build, update_packages] - if: ${{ needs.update_packages.outputs.commited }} + if: ${{ needs.update_packages.outputs.commited && github.ref_name == 'main' }} runs-on: ubuntu-latest steps: - name: Checkout @@ -90,7 +90,6 @@ jobs: ref: ${{ needs.update_packages.outputs.commit_long_sha }} - name: Publish package changes to AUR - if: "${{ needs.update_packages.outputs.commited && github.ref_name == 'main' }}" uses: KSXGitHub/github-actions-deploy-aur@v2.7.0 with: pkgname: "yandex-music" @@ -129,7 +128,6 @@ jobs: - name: Upload files to a GitHub release uses: ncipollo/release-action@v1.13.0 - if: ${{ github.ref_name == 'main' }} with: allowUpdates: true artifacts: dist/* diff --git a/build_tarball.sh b/build_tarball.sh index 20a3791..58c6d3d 100644 --- a/build_tarball.sh +++ b/build_tarball.sh @@ -44,7 +44,7 @@ build_tarball(){ chmod 755 "${app_dir}/usr/bin/yandex-music" cd "${app_dir}" - tar cvfz "${OUTPUT_DIR}/yandex-music_${version}_${arch}.tar.gz" * + tar -czf "${OUTPUT_DIR}/yandex-music_${version}_${arch}.tar.gz" * cd "${INITIAL_DIR}" }