From 870b4d4bf1da6ba5ff64f48971da08e78f1bdb46 Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Mon, 18 Nov 2019 15:48:13 +0100 Subject: [PATCH] feature: add gh-pages deploy script --- .github/workflows/release.yml | 6 ++++++ CHANGELOG.md | 5 +++++ project.clj | 9 +++++---- resources/templates/resume.html | 2 +- src/resume/gh_pages.clj | 22 ++++++++++++++++++++++ 5 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 src/resume/gh_pages.clj diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0207774..62aaa86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,3 +66,9 @@ jobs: asset_path: ./target/dist/resume.pdf asset_name: resume.pdf asset_content_type: application/pdf + + - name: Update gh-pages branch + run: | + lein gh-pages-export + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 094bf5a..420b9f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). +## [1.4.0] - 18.11.2019 +### Added +- Script to export to gh-pages + ## [1.3.3] - 17.11.2019 ### Changed - Updated skill section in PDF to be leaner. @@ -37,6 +41,7 @@ All notable changes to this project will be documented in this file. This change ### Added - Export to [json resume](jsonresume.org). +[1.4.0]: https://github.com/scoiatael/resume/compare/v1.3.3...v1.4.0 [1.3.3]: https://github.com/scoiatael/resume/compare/v1.3.2...v1.3.3 [1.3.2]: https://github.com/scoiatael/resume/compare/v1.3.1...v1.3.2 [1.3.1]: https://github.com/scoiatael/resume/compare/v1.3.0...v1.3.1 diff --git a/project.clj b/project.clj index c34b4e8..148cc90 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,6 @@ -(defproject resume "1.3.3" - :description "Resume-from-org generator" - :url "http://example.com/FIXME" +(defproject resume "1.4.0" + :description "Resume generator" + :url "http://github.com/scoiatael/resume" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "https://www.eclipse.org/legal/epl-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] @@ -11,7 +11,8 @@ [stasis "2.5.0"]] :aliases {"export" ["run" "-m" "resume.core/export"] "test" ["with-profile" "test" "midje"] - "docker-export" ["run" "-m" "resume.docker/export"]} + "docker-export" ["run" "-m" "resume.docker/export"] + "gh-pages-deploy" ["run" "-m" "resume.gh-pages/deploy"]} :repl-options {:init-ns resume.core} :ring {:handler resume.web/app} :profiles {:dev {:plugins [[lein-ring "0.12.5"]] diff --git a/resources/templates/resume.html b/resources/templates/resume.html index d2140dc..aba3a58 100644 --- a/resources/templates/resume.html +++ b/resources/templates/resume.html @@ -32,7 +32,7 @@ {{resume.basics.name}} {% for path in css-paths %} - {% style path %} + {% endfor %}