Skip to content

Commit

Permalink
List structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Sep 16, 2024
1 parent d991e1c commit 236ea57
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/hugo-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: [ master, main ]
paths-ignore:
- ".github/**"
pull_request:
branches: [ main ]

jobs:
job-one:
Expand All @@ -13,22 +15,3 @@ jobs:
- name: hugo build
run: |
ls -la
cd aspose-barcode-cloud-docs && git stash && git pull && cd -
cd lutsk-aspose-prototype && git stash && git pull
cd themes/lutsk-aspose-theme && git stash && git pull && cd -
sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli
rsync --recursive --delete --force --progress ${{ secrets.PROJECTPATH }} content/
rm -rf public
hugo --minify --baseURL https://docs.aspose.cloud/barcode
rsync --recursive --delete --force -e "ssh" --progress public/ ${{ secrets.TRANSFERPATH }}
- name: hugo deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }}
port: ${{ secrets.SSHPORT }}
script: |
sudo rsync --recursive --delete --force --progress ${{ secrets.PUBLICCONTENTPATH }} ${{ secrets.DEPLOYPATH }}
sudo nginx -s reload

0 comments on commit 236ea57

Please sign in to comment.