Skip to content

Add support for RSQKit task links with TechRadar segments #4

Add support for RSQKit task links with TechRadar segments

Add support for RSQKit task links with TechRadar segments #4

Workflow file for this run

name: Build and deploy Technology Radar
on:
pull_request:
push:
branches:
- main
# 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: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- uses: actions/cache@v4
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm
- run: npm ci
- name: Set up environment variables
run: |
echo "BASE_PATH=/$(echo '${{ github.repository }}' | cut -d'/' -f2)" >> $GITHUB_ENV
echo "BASE_URL=https://opensource.aoe.com$BASE_PATH" >> $GITHUB_ENV
- run: npm run build:data
- run: npm run build
- run: if [ -n "$(git status --porcelain)" ]; then echo 'workspace is dirty after rebuilding' ; git status ; git diff ; exit 1 ; fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: out/
# Deployment job
deploy:
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4