Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "[datascribe-site] Build, Release, Deploy"

on:
push:
branches:
- "main"
paths:
- "**"

jobs:
hugo-build-release-deploy:
uses: chnm/.github/.github/workflows/hugo--build-release-deploy.yml@main
secrets: inherit
with:
container-registry: "ghcr.io"
container-image-name: "datascribe-site"
hugo-context-root: "."
hugo-devl-url: "https://datascribe.tech"
hugo-prod-url: "https://datascribe.tech"

build-artifact-name: "datascribe-website"
release-tag-name-type: "iso"

website-devl-fqdn: "datascribe.tech"
website-prod-fqdn: "datascribe.tech"
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,4 @@ build :
hugo --cleanDestinationDir --buildDrafts --buildFuture --baseURL https://datascribe.tech/
@echo "Website finished building."

deploy : build
@echo "\nDeploying the site with rsync ..."
rsync --delete --itemize-changes --omit-dir-times \
--checksum -avz --no-t --no-perms --exclude-from=rsync-excludes \
public/ susanoo:/websites/datascribe.tech/public | egrep -v '^\.'
@echo "Finished deploying the site with rsync."

.PHONY : preview build deploy
3 changes: 0 additions & 3 deletions rsync-excludes

This file was deleted.