Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
View runs Go to file
 
 
Cannot retrieve contributors at this time
name: Build & Deploy Hugo Blog
on:
push:
branches:
- master
jobs:
build:
name: Build and Deploy on Linode
runs-on: ubuntu-latest
steps:
- name: Run Hugo
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script_stop: true # stop the script immediately if any commands fail
script: |
cd ${{ secrets.HUGO_DIR }}
git pull
hugo