fix publish_release.yml

This commit is contained in:
Günter Obiltschnig 2022-10-22 20:59:08 +02:00
parent 6f6e9125fc
commit d71b4892f2

View File

@ -2,14 +2,6 @@ name: Publish Release
on:
workflow_dispatch:
inputs:
relspec:
description: 'Release Specification'
required: true
default: 'all'
type: choice
options:
- ''
- 'all'
channel:
description: 'Release Channel'
required: true
@ -35,13 +27,14 @@ jobs:
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 ${{ inputs.relspec }}
mkdoc all
-
name: Copy to web server
run: |
@ -70,7 +63,8 @@ jobs:
run: |
export POCO_BASE=`pwd`
export PATH=$POCO_BASE/release/script:$PATH
mkrel -c unix2dos ${{ inputs.relspec }}
mkrel -c unix2dos
mkrel -C unix2dos all
-
name: Copy to web server
run: |
@ -84,9 +78,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Install packages
run: sudo apt-get update && sudo apt-get -y install dos2unix
-
name: Install SSH key
run: |
@ -99,7 +90,8 @@ jobs:
run: |
export POCO_BASE=`pwd`
export PATH=$POCO_BASE/release/script:$PATH
mkrel ${{ inputs.relspec }}
mkrel
mkrel all
-
name: Copy to web server
run: |
@ -111,6 +103,9 @@ jobs:
runs-on: ubuntu-latest
needs: ["mkdoc", "mkrelease_win", "mkrelease"]
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Install SSH key
run: |
@ -120,4 +115,6 @@ jobs:
chmod go-rwx ~/.ssh/id_rsa
-
name: Sign and publish
run: ssh poco@pocoproject.org ./sign_and_publish.sh
run: |
read VERSION <VERSION
ssh poco@pocoproject.org ./sign_and_publish.sh $VERSION ${{ inputs.channel }}