Tom b1c92c3152 Squashed commit of the following:
commit 36cc58f5c418dbd55aecac0fe2b92977951e4401
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 12:04:44 2024 +0100

    revert

commit 74d40e498ac65c1789ceb5b07c9bad92e5356773
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:51:25 2024 +0100

    Update jekyll.yml

commit b9a1c11dbfdeeb4d26fdf54a70b47a7d16e71e3c
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:42:48 2024 +0100

    Update jekyll.yml

commit 94619844e19ceb61fa68c7d75a2508ff19f0bd08
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:33:15 2024 +0100

    Update _config.yml

commit e2a12fcf8e8e95b28be0f0c75c61745ee8afa7ac
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:18:01 2024 +0100

    change concurrency group

commit 3575764efaa6b8edb02d71ec6c1c84b9eefbb21d
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:12:27 2024 +0100

    Update Gemfile

commit 5f044a048a8c1b5f96e99e75eb91435ad3921e2a
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 11:09:57 2024 +0100

    setup a branch build

commit 9721978cb20bedd8a39abb89f436386585eab25f
Author: Tom <thomas.hodson@ecmwf.int>
Date:   Mon Jul 29 10:49:20 2024 +0100

    add micropython draft
2024-07-29 12:04:57 +01:00

71 lines
2.3 KiB
YAML

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install NPM packages
run: npm clean-install
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --trace --baseurl "${{steps.pages.outputs.base_path}}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v4
# Deployment job
deploy:
environment:
name: github-pages
url: "${{steps.pages.outputs.base_path}}"
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2