Remove iOS-specific issue from WSA-2024-23206 #397
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: 'npm' | |
- name: Install Node modules | |
run: npm install | |
- name: Eleventy | |
run: | | |
npx eleventy --output='_site/' --pathprefix='/' | |
- name: Deploy | |
run: | | |
mkdir -p ~/.ssh | |
chmod 0700 ~/.ssh | |
cat > ~/.ssh/key <<EOF | |
${{ secrets.DEPLOY_SSH_PRIVATE_KEY }} | |
EOF | |
cat > ~/.ssh/known_hosts <<EOF | |
${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} | |
EOF | |
chmod 0600 ~/.ssh/{key,known_hosts} | |
rsync -e "ssh -p ${{ secrets.DEPLOY_REMOTE_PORT }} -i '$HOME/.ssh/key'" \ | |
-azz --info=stats2 _site/ \ | |
'${{ secrets.DEPLOY_REMOTE_USER }}@${{ secrets.DEPLOY_REMOTE_HOST }}:${{ secrets.DEPLOY_REMOTE_PATH }}' |