|
|
@ -5,7 +5,7 @@ jobs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: apt update && apt install -y openssh-client git rsync golang-go
|
|
|
|
- run: apt update && apt install -y openssh-client git rsync golang-go sshpass
|
|
|
|
- name: Setup Hugo
|
|
|
|
- name: Setup Hugo
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
HUGO_VERSION: 0.105.0
|
|
|
|
HUGO_VERSION: 0.105.0
|
|
|
@ -13,16 +13,14 @@ jobs:
|
|
|
|
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
|
|
|
|
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
|
|
|
|
tar -xvzf hugo.tar.gz
|
|
|
|
tar -xvzf hugo.tar.gz
|
|
|
|
mv hugo /usr/local/bin
|
|
|
|
mv hugo /usr/local/bin
|
|
|
|
- name: Install SSH Key
|
|
|
|
|
|
|
|
uses: shimataro/ssh-key-action@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
key: ${{ secrets.CLAVE_SSH }}
|
|
|
|
|
|
|
|
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
|
|
|
|
|
|
|
|
- shell: bash
|
|
|
|
- shell: bash
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
clave_ssh: ${{ secrets.CLAVE_SSH }}
|
|
|
|
clave_ssh: ${{ secrets.CLAVE_SSH }}
|
|
|
|
|
|
|
|
contra: ${{ secrets.CONTRA }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
eval $(ssh-agent)
|
|
|
|
eval $(ssh-agent)
|
|
|
|
ssh-add - <<< "$clave_ssh"
|
|
|
|
ssh-add - <<< "$clave_ssh"
|
|
|
|
./subir.sh
|
|
|
|
#./subir.sh
|
|
|
|
|
|
|
|
hugo
|
|
|
|
|
|
|
|
sshpass -p "$contra" rsync -azP public/* calcetines@nodriza.robertops.com:/home/calcetines/blog/
|
|
|
|
|
|
|
|
|