Skip to content

Commit

Permalink
chore: create deploy-docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hanna-skryl authored Apr 28, 2024
1 parent d8f55e6 commit 25a2f57
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy docs to GitHub Pages

on:
push:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
name: Build docs
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build Pages
run: npx ng build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/browser

deploy:
needs: build
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@v4

0 comments on commit 25a2f57

Please sign in to comment.