Skip to content

[ci] Bump peaceiris/actions-gh-pages from 3 to 4 #354

[ci] Bump peaceiris/actions-gh-pages from 3 to 4

[ci] Bump peaceiris/actions-gh-pages from 3 to 4 #354

Workflow file for this run

name: netjsongraph.js CI BUILD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
qa-checks:
name: QA-Checks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Installing dependencies
run: |
yarn install
pip install openwisp-utils[qa]
- name: QA checks
run: ./run-qa-checks
build:
name: Tests and Coverage
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Installing dependencies
run: |
yarn install
- name: Tests
run: yarn coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-20.04
if: ${{ github.event_name=='push' }}
env:
MAPBOX_URL_TEMPLATE: ${{ secrets.MAPBOX_URL_TEMPLATE }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Installing dependencies
run: |
yarn install
- name: Build
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist