chore: builder ring wip #233
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to hosting | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Duplicate code for english and spanish servers | |
run: | | |
cd ${{ github.workspace }} | |
cd .. | |
mv hexagon en | |
mkdir hexagon | |
mv en hexagon/ | |
cd hexagon | |
cp -R en/.github . | |
cp -R en es | |
sed -i '27,28 s/en/es/g' es/mudlib/include/mud/translations.h | |
- name: Synchronize with hosting | |
uses: maldorne/rsync-deploy@v2.1 | |
env: | |
DEPLOY_KEY: ${{ secrets.REMOTE_SSH_KEY }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
REMOTE_SERVER: ${{ secrets.REMOTE_SERVER }} | |
REMOTE_PORT: ${{ secrets.REMOTE_PORT }} | |
REMOTE_PATH: ${{ secrets.REMOTE_PATH }} | |
FOLDER: "./" | |
EXCLUDE_LIST: ".github/workflows/exclude.txt" | |
- name: Finishing sync | |
run: echo Sync finished! |