File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,16 +118,25 @@ jobs:
118118 name : docs_site
119119 path : docs_site
120120 if-no-files-found : error
121-
121+
122122 deploy_docs :
123123 name : Deploy docs to ctf-gameserver.org
124124 runs-on : ubuntu-latest
125+ environment : ctf-gameserver.org
125126 # TODO
126127 if : github.ref == 'refs/heads/wip'
127128 needs :
128- - lint
129- - test_pypi
130- - test_debian
129+ # - lint
130+ # - test_pypi
131+ # - test_debian
132+ - build_docs
131133 steps :
132- - run : echo "${{ secrets.TEST_SECRET }}" > myfile
133- - run : cat myfile
134+ - uses : actions/download-artifact@v4
135+ with :
136+ name : docs_site
137+ - run : apt-get --yes update
138+ - run : apt-get --yes install --no-install-recommends openssh-client rsync
139+ - run : mkdir ~/.ssh
140+ - run : echo "${{ vars.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
141+ - run : echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_ed25519
142+ - run : rsync -a --delete --delete-delay --delay-updates docs_site/ gameserver-docs-upload@www.faust.cs.fau.de:site/
You can’t perform that action at this time.
0 commit comments