Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
ci: added deployment script
Browse files Browse the repository at this point in the history
re #28
  • Loading branch information
victor-pogor committed Nov 30, 2020
1 parent e388cfe commit 0371b6c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Deploy CodeIT theme to codeit.suntprogramator.dev"
on:
push:
branches:
- master
- dev
jobs:
deploy-blog:
name: Deploying the static pages to the FTP server
runs-on: klakegg/hugo:ext-ubuntu
steps:
- name: Set up Git repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Check Hugo version
run: hugo version
- name: Build static pages
run: hugo
- name: Deploy static pages
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ${{ secrets.FTP_URL }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: "public"
remoteDir: "www/codeit.suntprogramator.dev"

0 comments on commit 0371b6c

Please sign in to comment.