From bcfc9c0dc2102fc28e061a108eede7ad49fe0753 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 20 Aug 2023 11:56:39 -0300 Subject: [PATCH] an attempt to actually deploy docs --- .gitea/workflows/main.yml | 29 ++++++++++++++++++++++++++--- packaging/Archlinux/PKGBUILD | 4 ++-- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index e6b2718..a77b715 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,6 +1,9 @@ name: Main LMDBAL workfow run-name: ${{ gitea.actor }} is running LMDBAL main workflow -on: [push] +on: + push: + branches: + - main jobs: Archlinux: @@ -19,5 +22,25 @@ jobs: - name: Run tests working-directory: ./build/test run: ./runUnitTests - - name: Status - run: echo "${{ job.status }}" + - name: Compres Docs + working-directory: ./build/doc + run: tar -cvzf doc.tar.gz man xml html + - name: Copy docs via scp + uses: appleboy/scp-action@v0.1.4 + with: + host: ${{ secrets.DOMAIN_ROOT }} + username: ${{ secrets.DEPLOY_USER_NAME }} + key: ${{ secrets.DEPLOY_PRIVATE_KEY }} + source: "./build/doc/doc.tar.gz" + target: ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }} + - name: Unpack the archive + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.DOMAIN_ROOT }} + username: ${{ secrets.DEPLOY_USER_NAME }} + key: ${{ secrets.DEPLOY_PRIVATE_KEY }} + script_stop: true + script: | + cd ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }} + tar -xvzf doc.tar.gz + rm doc.tar.gz diff --git a/packaging/Archlinux/PKGBUILD b/packaging/Archlinux/PKGBUILD index 63457c6..7b58b00 100644 --- a/packaging/Archlinux/PKGBUILD +++ b/packaging/Archlinux/PKGBUILD @@ -1,13 +1,13 @@ # Maintainer: Yury Gubich pkgname=lmdbal -pkgver=0.3.1 +pkgver=0.5.0 pkgrel=1 pkgdesc="LMDB Abstraction Layer, qt5 version" arch=('i686' 'x86_64') url="https://git.macaw.me/blue/lmdbal" license=('GPL3') depends=( 'lmdb' 'qt5-base') -makedepends=('cmake>=3.16') +makedepends=('cmake>=3.16' 'gcc') optdepends=() source=("$pkgname-$pkgver.tar.gz::https://git.macaw.me/blue/lmdbal/archive/$pkgver.tar.gz")