Skip to content

Merge pull request #92 from vcl/chore/resolve-upstream-conflit #252

Merge pull request #92 from vcl/chore/resolve-upstream-conflit

Merge pull request #92 from vcl/chore/resolve-upstream-conflit #252

Workflow file for this run

name: Build
on:
push:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install and build
env:
GIT_BRANCH: ${{ steps.extract_branch.outputs.branch }}
run: |
npm ci --force
npm run docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# branch: gh-pages
folder: docs