Skip to content

feat: use signal

feat: use signal #96

name: Deploy gh-pages
on:
push:
pull_request:
branches:
- $default-branch
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- run: |
npm ci
./node_modules/.bin/ng test --watch=false --progress=false --browsers=ChromeHeadlessCI
- run: ./node_modules/.bin/ng build
- uses: actions/upload-pages-artifact@v1
with:
path: dist/blog
deploy:
needs: [ build ]
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
steps:
- uses: actions/deploy-pages@v2