This commit is contained in:
brookee 2024-02-27 02:29:42 -05:00
parent 81abac103a
commit 5a000085b2

View file

@ -9,10 +9,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Grab dependencies
- name: Grab packages
run: |
apt-get update && \
apt-get install -y jq rsync tar wget && \
apt-get install -y jq tar wget && \
wget -O hugo.tar.gz $(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[] | select(.name | test("hugo_[^extended].*_Linux-64bit.tar.gz")) | .browser_download_url') && \
tar -xzvf hugo.tar.gz && \
chmod +x hugo
@ -20,9 +20,6 @@ jobs:
run: ./hugo --minify --logLevel info
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
run: |
sudo apt-get update
sudo apt-get install -y rsync
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"