From 4a930cfb57c1df976a0a473e343979f5d4e69091 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 22 Jul 2021 22:32:23 +0000 Subject: [PATCH 1/5] Update .gitlab-ci.yml --- .gitlab-ci.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c2f187..b99912b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,15 +14,3 @@ build website: artifacts: paths: - public - -deploy to s3: - stage: deploy - image: - name: amazon/aws-cli - entrypoint: [""] - script: - - hexo clean - - hexo generate # Hexo generate Static Site - - aws --version - - aws s3 rm s3://$S3_BUCKET --recursive - - aws s3 cp public s3://$S3_BUCKET --recursive \ No newline at end of file From e1aa2bd2bde56be1a6bb4f8ad4e3732f2aad0276 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 22 Jul 2021 22:43:22 +0000 Subject: [PATCH 2/5] doc: update README.md to remove the Netlify status --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b36b2da..aeea85c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ ![Hexo Version](https://img.shields.io/badge/Hexo-5.4.0-blue.svg) -[![Netlify Status](https://api.netlify.com/api/v1/badges/10823cd5-1c87-4878-82d3-7757b6f22d3e/deploy-status)](https://app.netlify.com/sites/quizzical-yalow-c906a3/deploys) [![pipeline status](https://gitlab.com/leonxu260/hexo-butterfly/badges/master/pipeline.svg)](https://gitlab.com/leonxu260/hexo-butterfly/-/commits/master) ---- View site: https://quizzical-yalow-c906a3.netlify.app From 56741b0a00d3aecd0596f1c22dfcfab698594180 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 22 Jul 2021 23:10:37 +0000 Subject: [PATCH 3/5] doc: Update README.md to reflect the latest website --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aeea85c..daed0b3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![Hexo Version](https://img.shields.io/badge/Hexo-5.4.0-blue.svg) [![pipeline status](https://gitlab.com/leonxu260/hexo-butterfly/badges/master/pipeline.svg)](https://gitlab.com/leonxu260/hexo-butterfly/-/commits/master) ---- -View site: https://quizzical-yalow-c906a3.netlify.app +View site: https://angulareportfolio.pw ---- # Build an [Hexo] site with GitLab Pages ## Settings From 4c4f2720643bfc05ee1fa951df77e614dc65efd1 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 22 Jul 2021 23:39:34 +0000 Subject: [PATCH 4/5] doc: Update .gitlab-ci.yml --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b99912b..198fd8b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,3 +14,13 @@ build website: artifacts: paths: - public + +upload: + stage: deploy + script: + - hexo generate + - apt-get install lftp -y + - lftp -e "open server281.web-hosting.com; user $FTP_USERNAME $FTP_PASSWORD; mirror -X .* -X .*/ --reverse --verbose --delete local-folder/ public_html/; bye" + - hexo deploy + only: + - master From 89ca7de035f5b42724fe3053e666d249f7861580 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 22 Jul 2021 23:41:14 +0000 Subject: [PATCH 5/5] Update .gitlab-ci.yml --- .gitlab-ci.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 198fd8b..b99912b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,13 +14,3 @@ build website: artifacts: paths: - public - -upload: - stage: deploy - script: - - hexo generate - - apt-get install lftp -y - - lftp -e "open server281.web-hosting.com; user $FTP_USERNAME $FTP_PASSWORD; mirror -X .* -X .*/ --reverse --verbose --delete local-folder/ public_html/; bye" - - hexo deploy - only: - - master