Skip to content

Commit 5a0ad13

Browse files
authored
Merge pull request aspose-ocr-cloud#3 from aspose-ocr-cloud/develop
Develop
2 parents a5e0c9c + 88df77d commit 5a0ad13

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

.github/workflows/hugo-worklow.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Hugo-CI
2+
on:
3+
push:
4+
branches: [master]
5+
paths-ignore: ".github/**"
6+
7+
jobs:
8+
job-one:
9+
name: Deploy
10+
runs-on: [self-hosted, linux, x64, dev4-ocr-cloud]
11+
steps:
12+
- name: hugo build
13+
run: |
14+
git clone https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-docs.git || (cd aspose-ocr-cloud-docs && git pull)
15+
git clone --single-branch --branch master https://git.dev.dynabic.com/containerize-hugo/lutsk-aspose-prototype.git || (cd lutsk-aspose-prototype && git pull)
16+
cd lutsk-aspose-prototype
17+
git clone --single-branch --branch master https://git.dev.dynabic.com/containerize-hugo/lutsk-aspose-theme.git themes/lutsk-aspose-theme || (cd themes/lutsk-aspose-theme && git pull)
18+
sudo npm install -D --save autoprefixer
19+
sudo npm install -D --save postcss-cli
20+
rsync --recursive --delete --force --progress ${{ secrets.PROJECTPATH }} content/
21+
rm -rf public
22+
hugo --minify --baseURL https://docs.aspose.cloud/ocr
23+
rsync --recursive --delete --force -e "ssh" --progress public/ ${{ secrets.TRANSFERPATH }}
24+
- name: hugo deploy
25+
uses: appleboy/ssh-action@master
26+
with:
27+
host: ${{ secrets.HOST }}
28+
username: ${{ secrets.USERNAME }}
29+
key: ${{ secrets.SSHKEY }}
30+
port: ${{ secrets.SSHPORT }}
31+
script: |
32+
sudo rsync --recursive --delete --force --progress ${{ secrets.PUBLICCONTENTPATH }} ${{ secrets.DEPLOYPATH }}
33+
sudo nginx -s reload

.gtihub/workflows/hugo-worklow.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

ocr/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ type: docs
44
url: /
55
weight: 10
66
---
7-

0 commit comments

Comments
 (0)