Refactor workflow to combine build and deployment steps.
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 2m1s
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 2m1s
This commit is contained in:
parent
8d94884a00
commit
e8484f3456
1 changed files with 1 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue