test gitea actions

This commit is contained in:
Sebastian Frank 2023-03-23 16:52:30 +00:00
parent d1aafd8d8b
commit d43b302e1d

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}:./ \