Skip to content

chore(report): REST APIs week 3 report #596

chore(report): REST APIs week 3 report

chore(report): REST APIs week 3 report #596

Workflow file for this run

# SPDX-License-Identifier: MIT
#
# SPDX-FileCopyrightText: 2021 Gaurav Mishra <mishra.gaurav@siemens.com>
# 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 "actions@github.com"
# 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/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: build
single-commit: true