Skip to content

Merge pull request #280 from fossology/docs/2024/final-report #740

Merge pull request #280 from fossology/docs/2024/final-report

Merge pull request #280 from fossology/docs/2024/final-report #740

Workflow file for this run

# SPDX-License-Identifier: MIT
#
# SPDX-FileCopyrightText: 2021 Gaurav Mishra <[email protected]>
# SPDX-FileCopyrightText: 2021 Siemens AG
name: Test and deploy
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Test Build
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Build pages
run: |
# git config --global user.email "[email protected]"
# git config --global user.name "gh-actions"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
yarn build
- name: Release to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
single-commit: true