Refactor workflow to combine build and deployment steps.
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 2m1s

This commit is contained in:
Andreas Hnida 2024-04-17 21:37:15 +02:00
commit e8484f3456

View file

@ -6,7 +6,7 @@ on:
- main
jobs:
build:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
@ -52,22 +52,6 @@ jobs:
- name: Build Hugo site
run: hugo --minify
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: hugo-site
path: public/
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: hugo-site
path: public
- name: Deploy to Server
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with: