Work on CI/CD
This commit is contained in:
parent
2f6f6dd93e
commit
511011b46a
1 changed files with 18 additions and 4 deletions
|
@ -2,7 +2,7 @@ name: Deploy
|
|||
|
||||
on: [ push ]
|
||||
jobs:
|
||||
deploy:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -18,7 +18,21 @@ jobs:
|
|||
- name: Build
|
||||
run: ./hugo
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: website
|
||||
path: public/
|
||||
|
||||
deploy:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: website
|
||||
|
||||
- name: Install lftp
|
||||
run: apt install -y lftp
|
||||
|
||||
- name: Deploy website
|
||||
run: lftp -c "open -u $FTP_USER,$FTP_PASS $FTP_HOST; mirror -R public/ ~/$FTP_DIR; quit"
|
Loading…
Add table
Add a link
Reference in a new issue