diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..e3fd9fd --- /dev/null +++ b/.github/workflows/cicd.yml @@ -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" diff --git a/Makefile b/Makefile index 2278945..c71c5fb 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/rsync-excludes b/rsync-excludes deleted file mode 100644 index 189b81a..0000000 --- a/rsync-excludes +++ /dev/null @@ -1,3 +0,0 @@ -.htaccess -.htpasswd -.DS_Store \ No newline at end of file