Work on CI/CD
Some checks failed
Deploy / build (push) Successful in 8s
Deploy / deploy (push) Failing after 6s

This commit is contained in:
Aloïs Micard 2024-12-23 12:36:23 +01:00
parent 2f6f6dd93e
commit 511011b46a

View file

@ -1,8 +1,8 @@
name: Deploy
on: [push]
on: [ push ]
jobs:
deploy:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
@ -11,14 +11,28 @@ jobs:
fetch-depth: 0
- name: Setup Hugo
run : |
run: |
curl -L -o hugo_0.140.0_linux-amd64.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.140.0/hugo_0.140.0_linux-amd64.tar.gz
tar zxvf hugo_0.140.0_linux-amd64.tar.gz
- 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"