Actualiser .gitea/workflows/build.yaml
Some checks failed
continuous-integration/drone/push Build is passing
Production / deploy (push) Failing after 9s

This commit is contained in:
Mathieu Broillet 2023-07-03 14:06:06 +00:00
parent 477042e3ee
commit cb6fae465c

View File

@ -14,7 +14,9 @@ jobs:
uses: https://github.com/actions/checkout@v3
- name: Install hugo
run: apt-get update -y && apt-get install hugo -y
run: |
apt-get update -y
apt-get install hugo -y
- name: Init submodules
run: git submodule update --init
@ -25,6 +27,9 @@ jobs:
- name: Build staging
run: hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/
- name: debug
run: ls -al .
- name: Copy (scp) staging build to blog server
uses: https://github.com/appleboy/scp-action@v0.1.4
with:
@ -34,10 +39,15 @@ jobs:
key: ${{ secrets.SSH_KEY }}
source: "public/*"
target: /var/www/html/staging/
rm: true
strip_components: 1
- name: Build production
run: hugo --gc --minify -b https://blog.broillet.ch/
- name: debug
run: ls -al .
- name: Copy (scp) staging build to blog server
uses: https://github.com/appleboy/scp-action@v0.1.4
with:
@ -47,3 +57,5 @@ jobs:
key: ${{ secrets.SSH_KEY }}
source: "public/*"
target: /var/www/html/prod/
rm: true
strip_components: 1