Skip to content

Build and push to gh-pages #5

Build and push to gh-pages

Build and push to gh-pages #5

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ["Node.js CI"]
types: [completed]
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to gh pages
run: |
npx angular-cli-ghpages --dir=dist/contrastinator
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}