Skip to content

Commit f1195b8

Browse files
authored
🚀 build: Add GitHub Actions workflow for deploying to GitHub Pages
1 parent 1fed48e commit f1195b8

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '14'
16+
17+
- run: npm install
18+
19+
- run: npx ng build --prod --base-href /angular-localstorage-service/
20+
21+
- uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./dist/angular-local-storage

0 commit comments

Comments
 (0)