chore: remove repo code from the final image #9
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-18.04 | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Compile driver | |
run: | | |
cd ${{ github.workspace }} | |
cd src | |
make | |
make install | |
- name: Synchronize with hosting | |
uses: maldorne/[email protected] | |
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! |