Files
generic-landing-page/.github/workflows/build.yml
renovate[bot] 0dd8227346 chore(deps): update actions/upload-artifact action to v4 (#165)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-25 01:59:15 +02:00

47 lines
913 B
YAML

name: Build example page
permissions:
contents: write
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build production assets
run: |
npm install
npm run prod --if-present
- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: build-site
path: dist
- name: Build GitHub Pages
uses: crazy-max/ghaction-github-pages@v4.0.0
with:
build_dir: dist
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}