Skip to content

more debugging

more debugging #15

Workflow file for this run

on:
push:
branches:
- main
- workflow-debugging
jobs:
deploy:
name: Deploy to github pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '21.x'
- run: sudo apt-get install sshpass
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- run: npm ci
- run: npm run build
- env:
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
mkdir ./dist/remote_dist
cd ./dist/remote_dist
sshpass -v -P "Enter passphrase for key" -p $SSH_PASSWORD git clone [email protected]:mutawwir-blog/mutawwir-blog.github.io
rm -rf ./*
echo comes here
# Copying contents of parent into child, without copying the child itself too
echo comes here too
find ../ -maxdepth 1 -printf "%f\n" | grep -v -E "(^remote_dist$|^\.\./$)" | while read sibling; do cp -r ../$sibling ./; done
tree -L 2
echo and here
git add .
echo and here too whatttt
git commit -m "local update"
sshpass -v -P "Enter passphrase for key" -p $SSH_PASSWORD git push