From 40013704cf16f53468940a7d0160b40e8241a87c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 17 Sep 2024 07:16:43 +0200 Subject: Remove jekyll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a complete rewrite of my blog to a vastly simpler form. That is, we only need HTML and a couple of build scripts to have something equivalent, without all the dependencies that jekyll brings. I have also taken the chance to remove a lot of stuff that was actually not needed. Signed-off-by: Miquel Sabaté Solà --- .github/ISSUE_TEMPLATE/custom.md | 21 --------------- .github/PULL_REQUEST_TEMPLATE.md | 10 ------- .github/workflows/ci.yml | 58 ++++++---------------------------------- 3 files changed, 8 insertions(+), 81 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/custom.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md (limited to '.github') diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index b931a07..0000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Custom issue template -about: General issues, both bugs and features. -title: '' -labels: '' -assignees: mssola ---- - -### Description - -Check out the [contribution guidelines](../CONTRIBUTING.md) file for some -considerations before submitting a new issue. - -### Steps to reproduce - -1. First I did this... -2. Then that... -3. And this happened! - -- **Expected behavior**: I expected this to happen! -- **Actual behavior**: But this happened... diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 1cae81f..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Provide a general description of the changes in your pull request. If this pull request fixes a known issue, please tag it as well (e.g.: `Fixes #1`). - -Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes): - -- [ ] The commits are consistent with the [contribution guidelines](../CONTRIBUTING.org). -- [ ] `bundle exec rails test test/*` and `bundle exec rubocop` are passing. -- [ ] You've updated the [changelog](../CHANGELOG.org) (if adding/changing user-visible functionality). -- [ ] You've updated the [readme](../README.org) (if adding/changing user-visible functionality). - -Thanks for contributing to this project! diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c072b..7f8652d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,66 +6,24 @@ on: pull_request: branches: [main] +env: + JO_SUBPATH: "/" + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '14.x' - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: "Cache JS modules" - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: "Cache gems" - uses: actions/cache@v2 - id: gem-cache - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - - name: "Install Ruby and Javascript dependencies" - env: - RAILS_ENV: "test" - NODE_ENV: "test" - run: | - bundle config set path 'vendor/bundle' - bundle install --jobs 4 --retry 3 - yarn --force - yarn run webpack-single-shot - - name: "Build site" - run: bundle exec jekyll build - - - name: "Run style checks" - run: | - bundle exec rubocop - yarn run eslint - - - name: "Run tests" - run: bundle exec rake + run: ./script/build.sh - name: "Create tarball" - run: tar czvf site.tar.gz _site + run: tar czvf site.tar.gz build - name: "Upload tarball" uses: appleboy/scp-action@master @@ -90,5 +48,5 @@ jobs: cd tmp tar xzvf site.tar.gz rm -rf ${{ secrets.DEST }}/* - cp -r _site/* ${{ secrets.DEST }}/ - rm -r _site site.tar.gz + cp -r build/* ${{ secrets.DEST }}/ + rm -r build site.tar.gz -- cgit v1.2.3