Skip to content

github: Fix 2.3 release workflow #925

github: Fix 2.3 release workflow

github: Fix 2.3 release workflow #925

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- release-2.3
jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: dovecot/dovecot-sphinx-action@0.11
- name: Prepare tarballs
run: |
tar --transform=s,build/dirhtml,html, -cJf build/docs.txz build/dirhtml
for dir in build/mans/*; do
tag=$(basename $dir)
tar --transform=s,${dir},man, '--exclude=_*' '--exclude=.*' -cJf build/$tag.txz $dir
done
- uses: dovecot/rsync-deployments@master
with:
RSYNC_OPTIONS: -azr --delete
RSYNC_TARGET: docs@doc.dovecot.org:public_html/3.0/.
RSYNC_BASEDIR: /build/dirhtml/.
if: env.DEPLOY_KEY
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
release23:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/release-2.3'
steps:
- uses: actions/checkout@v4
- uses: dovecot/dovecot-sphinx-action@0.11
- uses: dovecot/rsync-deployments@v2.0.2
with:
FLAGS: -azr --delete
HOST: doc.dovecot.org
USER: docs
LOCALPATH: /build/.
REMOTEPATH: public_html/2.3/
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
if: env.DEPLOY_KEY
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}