added auto deploy
This commit is contained in:
parent
15f4f3dae3
commit
9cc720f673
27
.gitlab-ci.yml
Normal file
27
.gitlab-ci.yml
Normal file
@ -0,0 +1,27 @@
|
||||
default:
|
||||
talgs:
|
||||
- docs
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- public/
|
||||
script:
|
||||
- echo "Build"
|
||||
- hugo
|
||||
|
||||
delpoy-beta:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Deploy"
|
||||
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com docs public/*
|
||||
evironment:
|
||||
name: beta
|
||||
url: https://docs.pls5618.com
|
||||
only:
|
||||
- main
|
Loading…
x
Reference in New Issue
Block a user