additional tracking #46
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: Update Website | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14' | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./website | |
- name: Build | |
run: npm run build | |
working-directory: ./website | |
- name: Deploy to Server | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.DEPLOYMENT_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan dickreuter.com >> ~/.ssh/known_hosts | |
scp -i ~/.ssh/id_rsa -r ./dist/* [email protected]:/home/ec2-user/www/deepermind-pokerbot.com | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOYMENT_KEY }} | |
working-directory: ./website |