Skip to content

Update documentation #10

Update documentation

Update documentation #10

name: Deploy Angular to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build Angular app
run: npm run build-with-content
env:
SUMMARISEAPI: ${{ secrets.SUMMARISEAPI }}
SUMMARISEAPIKEY: ${{ secrets.SUMMARISEAPIKEY }}
- name: Update pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist/postreader/browser/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${\{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1