From 7edbc32377572923ef2fcdb02a327aec6def15fe Mon Sep 17 00:00:00 2001 From: blue Date: Wed, 11 Oct 2023 16:19:28 -0300 Subject: [PATCH] CI, try 6 --- .gitea/workflows/release.yml | 34 +++++++++++++++++----------------- CMakeLists.txt | 2 +- packaging/Archlinux/PKGBUILD | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index fb94370..2caa588 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -11,34 +11,34 @@ jobs: - name: Download the release tarball run: curl -sL ${{ gitea.server_url }}/${{ gitea.repository }}/archive/${{ gitea.event.release.tag_name }}.tar.gz --output tarball.tar.gz - - name: Debug output - run: echo ${{ gitea.ref }} - - name: Calculate SHA256 for the tarball run: echo "tbSum=$(sha256sum tarball.tar.gz | cut -d ' ' -f 1)" >> $GITHUB_ENV - name: Unarchive tarball run: tar -xvzf tarball.tar.gz - - name: Create a directory - run: mkdir aur + - name: Clone the AUR repository + run: | + echo ${{ secrets.DEPLOY_TO_AUR_PRIVATE_KEY }} > key + GIT_SSH_COMMAND="ssh -i key -o 'IdentitiesOnly yes'" git clone ssh://aur@aur.archlinux.org/mlc.git aur + chmod 777 -R aur/.SRCINFO + cd aur + git config user.name ${{ secrets.DEPLOY_TO_AUR_USER_NAME }} + git config user.email ${{ secrets.DEPLOY_TO_AUR_EMAIL }} - - name: Release permissions - run: chmod 777 aur - name: Copy PKGBUILD to the directory run: cp mlc/packaging/Archlinux/PKGBUILD aur/ - - name: Put SHA256 sum to PKGBUILD file + - name: Put SHA256 sum to PKGBUILD file, and generate .SRCINFO working-directory: aur - run: sed -i "/sha256sums=/c\sha256sums=('${{ env.tbSum }}')" PKGBUILD + run: | + sed -i "/sha256sums=/c\sha256sums=('${{ env.tbSum }}')" PKGBUILD + sudo -u build makepkg --printsrcinfo > .SRCINFO - - name: create SRCINFO + - name: Commit package to aur working-directory: aur - run: sudo -u build makepkg --printsrcinfo > .SRCINFO - - - name: Debug print PKGBUILD - run: cat aur/PKGBUILD - - - name: Debug print .SRCINFO - run: cat aur/.SRCINFO + run: | + git add PKGBUILD .SRCINFO + git commit -m "${{ gitea.event.release.body }}" + GIT_SSH_COMMAND="ssh -i ../key -o 'IdentitiesOnly yes'" git push diff --git a/CMakeLists.txt b/CMakeLists.txt index ad34ca8..b740c13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5) project( mlc - VERSION 1.3.23 + VERSION 1.3.24 DESCRIPTION "Media Library Compiler: rips your media library to a lossy compilation" LANGUAGES CXX ) diff --git a/packaging/Archlinux/PKGBUILD b/packaging/Archlinux/PKGBUILD index b824d22..0bb7ab8 100644 --- a/packaging/Archlinux/PKGBUILD +++ b/packaging/Archlinux/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Yury Gubich pkgname=mlc -pkgver=1.3.23 +pkgver=1.3.24 pkgrel=1 pkgdesc="Media Library Compiler: rips your media library to a lossy compilation" arch=('i686' 'x86_64')