CI, try 6
This commit is contained in:
parent
ed4d7365ac
commit
7edbc32377
@ -11,34 +11,34 @@ jobs:
|
|||||||
- name: Download the release tarball
|
- 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
|
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
|
- name: Calculate SHA256 for the tarball
|
||||||
run: echo "tbSum=$(sha256sum tarball.tar.gz | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
run: echo "tbSum=$(sha256sum tarball.tar.gz | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Unarchive tarball
|
- name: Unarchive tarball
|
||||||
run: tar -xvzf tarball.tar.gz
|
run: tar -xvzf tarball.tar.gz
|
||||||
|
|
||||||
- name: Create a directory
|
- name: Clone the AUR repository
|
||||||
run: mkdir aur
|
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
|
- name: Copy PKGBUILD to the directory
|
||||||
run: cp mlc/packaging/Archlinux/PKGBUILD aur/
|
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
|
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
|
working-directory: aur
|
||||||
run: sudo -u build makepkg --printsrcinfo > .SRCINFO
|
run: |
|
||||||
|
git add PKGBUILD .SRCINFO
|
||||||
- name: Debug print PKGBUILD
|
git commit -m "${{ gitea.event.release.body }}"
|
||||||
run: cat aur/PKGBUILD
|
GIT_SSH_COMMAND="ssh -i ../key -o 'IdentitiesOnly yes'" git push
|
||||||
|
|
||||||
- name: Debug print .SRCINFO
|
|
||||||
run: cat aur/.SRCINFO
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
project(
|
project(
|
||||||
mlc
|
mlc
|
||||||
VERSION 1.3.23
|
VERSION 1.3.24
|
||||||
DESCRIPTION "Media Library Compiler: rips your media library to a lossy compilation"
|
DESCRIPTION "Media Library Compiler: rips your media library to a lossy compilation"
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Yury Gubich <blue@macaw.me>
|
# Maintainer: Yury Gubich <blue@macaw.me>
|
||||||
pkgname=mlc
|
pkgname=mlc
|
||||||
pkgver=1.3.23
|
pkgver=1.3.24
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Media Library Compiler: rips your media library to a lossy compilation"
|
pkgdesc="Media Library Compiler: rips your media library to a lossy compilation"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
Loading…
Reference in New Issue
Block a user