Skip to content

Make the uses actions/checkout the first component in a step #4

Make the uses actions/checkout the first component in a step

Make the uses actions/checkout the first component in a step #4

Workflow file for this run

name: GopherCoders_Build_And_Deploy
on: [push, pull_request]
jobs:
deploy:
name: "Deploy to senpaid"
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name Checkout
- uses: actions/checkout@v4
with:
path: 'gophercoders.com'
- name Listing
run: ls -al

Check failure on line 14 in .github/workflows/gophercoders.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/gophercoders.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
run: ls -al ./gophercoders.com
- name: Configure SSH
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/gophercoders.key
chmod 600 ~/.ssh/gophercoders.key
cat >>~/.ssh/config <<END
Host gophercoders.com
HostName $SSH_HOST
User $SSH_USER
Port $SSH_PORT
IdentityFile ~/.ssh/gophercoders.key
StrictHostKeyChecking no
ProxyCommand openssl s_client -quiet -connect senpaid.com:$SSH_PORT -servername www.gophercoders.com
END
env:
SSH_KEY: ${{ secrets.SENPAID_SERVER_SSH_KEY }}
SSH_USER: ${{ secrets.SENPAID_SERVER_USERNAME }}
SSH_HOST: ${{ secrets.SENPAID_SERVER_HOSTNAME }}
SSH_PORT: ${{ secrets.SENPAID_SERVER_PORT }}
- name: List public dir
run: ssh gophercoders.com 'whoami; ls -l ~/public'
- name: Delete ssh dir
if: ${{ always() }}
run: rm -rf ~/.ssh