parent
38b9060a3c
commit
81abac103a
1 changed files with 4 additions and 3 deletions
|
@ -9,12 +9,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install rsync
|
|
||||||
run: apt-get update && apt-get install -y rsync
|
|
||||||
- name: Grab dependencies
|
- name: Grab dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y jq tar wget && \
|
apt-get install -y jq rsync 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') && \
|
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 && \
|
tar -xzvf hugo.tar.gz && \
|
||||||
chmod +x hugo
|
chmod +x hugo
|
||||||
|
@ -22,6 +20,9 @@ jobs:
|
||||||
run: ./hugo --minify --logLevel info
|
run: ./hugo --minify --logLevel info
|
||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
uses: easingthemes/ssh-deploy@main
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y rsync
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ARGS: "-rlgoDzvc -i --delete"
|
ARGS: "-rlgoDzvc -i --delete"
|
||||||
|
|
Loading…
Add table
Reference in a new issue