Skip to content

Commit

Permalink
ci: deploy on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Dec 7, 2023
1 parent 18e14cd commit 2b22588
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/angular-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Angular App to GitHub Pages

permissions:
contents: write

on:
push:
branches:
- main # Change this to your main branch

jobs:
deploy:
runs-on: ubuntu-latest

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 Angular App
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/a11y-demo/browser # Change this to your Angular app's build output directory

0 comments on commit 2b22588

Please sign in to comment.