2021-02-18 22:21:36 +01:00
|
|
|
name: "Deploy status"
|
|
|
|
on:
|
|
|
|
push:
|
2021-08-29 11:48:16 +02:00
|
|
|
tags:
|
|
|
|
- "v*"
|
2021-02-18 22:21:36 +01:00
|
|
|
jobs:
|
|
|
|
deploy-blog:
|
|
|
|
name: Deploying the static pages to the FTP server
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: CodeIT
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'CodeIT'
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: 'latest'
|
|
|
|
extended: true
|
|
|
|
- name: Build static pages
|
|
|
|
run: hugo --source=exampleSite -v -e production
|
|
|
|
- name: Deploy static pages
|
|
|
|
uses: sebastianpopp/ftp-action@releases/v2
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.FTP_URL }}
|
|
|
|
user: ${{ secrets.FTP_USERNAME }}
|
|
|
|
password: ${{ secrets.FTP_PASSWORD }}
|
|
|
|
localDir: "CodeIT/exampleSite/public"
|
|
|
|
remoteDir: "www/codeit.suntprogramator.dev"
|