From b2abcdaebeac967754c1da73440c166d9d60ebbb Mon Sep 17 00:00:00 2001 From: slashformotion Date: Wed, 28 Jul 2021 10:33:10 +0200 Subject: [PATCH] Added build CI --- .github/workflows/build-site.yml | 31 +++++++++++++++++++++++++++++++ theme.toml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-site.yml diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml new file mode 100644 index 0000000..33cc8c8 --- /dev/null +++ b/.github/workflows/build-site.yml @@ -0,0 +1,31 @@ +name: build github pages + +on: + push: + branches: + - master # Set a branch to deploy + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.83.1' + extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' + with: + github_token: ${{ secrets.GH_TOKEN }} + publish_dir: ./public \ No newline at end of file diff --git a/theme.toml b/theme.toml index 985502e..eeb14d1 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "A minimalist blog theme using Tufte-css." homepage = "http://github.com/shawnohare/hugo-tufte" tags = ["blog", "tufte", "minimal"] features = ["math", "tufte-css", "tufte"] -min_version = 0.85 +min_version = 0.84 authors = [ {name = "Shawn O'Hare", homepage = "http://www.shawnohare.com"},