test gitea actions
Some checks failed
deploy

This commit is contained in:
Sebastian Frank 2023-03-23 16:52:30 +00:00
parent e3f28d841f
commit 66e40c5f16
Signed by: apairon
SSH Key Fingerprint: SHA256:lYVOnGlR42QHj7wuqfFgGw8cKbfyZUpzeRDGVBBAHQU

View File

@ -1,9 +1,9 @@
name: deploy to production name: deploy to production
on: on: "push"
push: # push:
branches: # branches:
- master # - master
jobs: jobs:
deploy: deploy:
@ -18,8 +18,28 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- run: git fetch --force --tags - run: git fetch --force --tags
- run: hostname
- run: pwd - name: build docs
- run: ls -la env:
- run: docker ps FORCE_COLOR: "true"
- run: ls -la /data run: |
cd docs
yarn install
yarn docpress:build
- name: deploy docs
# only if branch is master
if: github.ref == 'refs/heads/master'
env:
RSYNC_HOST: ftp1.webmakers.de
RSYNC_PORT: 22222
RSYNC_USER: webmakers_tibi_docs_rsync_master
RSYNC_PASS: ${{ secrets.rsync_master }}
run: |
cd docs
echo rsync -rlcgD --perms -i -u -v --stats --progress \
--delete \
-e "sshpass -p ${RSYNC_PASS} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p ${RSYNC_PORT}" \
_docpress/ \
${RSYNC_USER}@${RSYNC_HOST}:./ \