Skip to content

Add some links.

Add some links. #40

Workflow file for this run

name: deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- run: bundle install
- run:
bundle exec htmlproofer
--ignore-status-codes 429
$GITHUB_WORKSPACE/index.html
- run: which rsync
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
run: |
mkdir -p ~/.ssh
ssh-keyscan -t rsa "$DEPLOY_HOST" 2> /dev/null | sort -u -o ~/.ssh/known_hosts
echo "$DEPLOY_KEY" > ~/.ssh/deploy_key
eval "$(ssh-agent -s)"
chmod 600 ~/.ssh/deploy_key
ssh-add ~/.ssh/deploy_key
rsync -rq --links --delete --exclude=".*" . "$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH"