name: Publish Release on: workflow_dispatch: inputs: channel: description: 'Release Channel' required: true default: 'releases' type: choice options: - 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