Skip to content

Merge pull request #38 from ngxpert/feat/schematics #23

Merge pull request #38 from ngxpert/feat/schematics

Merge pull request #38 from ngxpert/feat/schematics #23

Workflow file for this run

name: Make a Release and Deploy on GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm ci
- name: Build app
run: npm run build -- --base-href "/hot-toast/"
- name: Build library
run: npm run build:lib
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Deploy to GitHub Pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx angular-cli-ghpages --name="mr. Dharmen's Bot" --email=shhdharmen@gmail.com --dir=dist/toast/browser