Skip to content

Merge pull request #13 from tomkeuper/development #20

Merge pull request #13 from tomkeuper/development

Merge pull request #13 from tomkeuper/development #20

Workflow file for this run

name: Deploy production documentation
on:
push:
branches: [production]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
node-version: '18'
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website files
run: yarn build
- name: Copy to production server
uses: wangyucode/sftp-upload-action@v2.0.2
with:
host: ${{ vars.PROD_HOST }}
username: ${{ secrets.PROD_USER }}
password: ${{ secrets.PROD_PASS }}
localDir: 'build'
remoteDir: '/var/www/tomkeuper.com/wiki'
removeExtraFilesOnServer: true