diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-09-17 07:16:43 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-09-17 07:16:43 +0200 |
| commit | 40013704cf16f53468940a7d0160b40e8241a87c (patch) | |
| tree | f8ddc584fd90a450733332a3b9e6bbb898b4ab4e /.github/workflows/ci.yml | |
| parent | 71a1444ec305d537cbfadb1a599df7dcacde13a1 (diff) | |
| download | jo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.tar.gz jo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.zip | |
Remove jekyll
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à <mikisabate@gmail.com>
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 58 |
1 files changed, 8 insertions, 50 deletions
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 |
