LSP15639 -> ERS_high and LSP15649 -> ERS_low #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy Jekyll site to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install NPM Dependencies | |
run: | | |
npm install | |
npm install webpack | |
npm install webpack-cli | |
- name: Build with Webpack | |
run: | | |
./node_modules/.bin/webpack --mode production | |
- name: Set up Ruby | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
# FIXME temporary workaround | |
# https://github.com/actions/runner-images/issues/10215 | |
- name: Change permissions | |
run: chmod -R o-w /opt/hostedtoolcache/Ruby | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v3 | |
- name: Build Jekyll site | |
run: | | |
gem install bundler jekyll | |
bundle install | |
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" --destination _site | |
ls -lha _site | |
- name: Upload GitHub Pages artifact | |
uses: actions/upload-pages-artifact@v2 | |
# Deployment job | |
deploy-pages: | |
permissions: | |
id-token: write | |
pages: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build-pages | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |