From 9fc117d585e552ae3327b56900df9cc40653d574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Mon, 24 Oct 2022 15:46:48 +0200 Subject: [PATCH] add publish_release.yml workflow --- .github/workflows/publish_release.yml | 120 ++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 .github/workflows/publish_release.yml diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml new file mode 100644 index 000000000..fead81f3d --- /dev/null +++ b/.github/workflows/publish_release.yml @@ -0,0 +1,120 @@ +name: Publish Release +on: + workflow_dispatch: + inputs: + channel: + description: 'Release Channel' + required: true + default: 'releases' + type: choice + options: + - releases + - releases-staging + +jobs: + mkdoc: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Install packages + run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev libpq-dev + - + name: Install SSH key + run: | + mkdir -p ~/.ssh + echo '${{ secrets.POCOPROJECT_ORG_SSH_HOST_KEY }}' >~/.ssh/known_hosts + echo '${{ secrets.POCO_SSH_KEY }}' >~/.ssh/id_rsa + chmod go-rwx ~/.ssh/id_rsa + - + name: Build documentation + run: | + export POCO_BASE=`pwd` + export PATH=$POCO_BASE/release/script:$PATH + export LD_LIBRARY_PATH=$POCO_BASE/stage/tools/lib/Linux/x86_64 + mkdoc all + - + name: Copy to web server + run: | + read VERSION ~/.ssh/known_hosts + echo '${{ secrets.POCO_SSH_KEY }}' >~/.ssh/id_rsa + chmod go-rwx ~/.ssh/id_rsa + - + name: Build release package + run: | + export POCO_BASE=`pwd` + export PATH=$POCO_BASE/release/script:$PATH + mkrel -c unix2dos + mkrel -c unix2dos all + - + name: Copy to web server + run: | + read VERSION ~/.ssh/known_hosts + echo '${{ secrets.POCO_SSH_KEY }}' >~/.ssh/id_rsa + chmod go-rwx ~/.ssh/id_rsa + - + name: Build release package + run: | + export POCO_BASE=`pwd` + export PATH=$POCO_BASE/release/script:$PATH + mkrel + mkrel all + - + name: Copy to web server + run: | + read VERSION ~/.ssh/known_hosts + echo '${{ secrets.POCO_SSH_KEY }}' >~/.ssh/id_rsa + chmod go-rwx ~/.ssh/id_rsa + - + name: Sign and publish + run: | + read VERSION