Skip to content

Commit

Permalink
ci: add deploy demo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-parfenov committed Nov 27, 2024
1 parent 5bf779d commit 63dda9e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting
on:
push:
branches:
- master
paths:
- 'projects/**'
- '!projects/ngx-drag-resize/README.md'
- '!projects/ngx-drag-resize/CHANGELOG.md'
jobs:
deploy_live_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm run predeploy:demo
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NGX_DRAG_RESIZE }}
projectId: ngx-drag-resize
channelId: live
11 changes: 0 additions & 11 deletions DEPLOYMENT.md

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"lib:version:patch": "npm run version:patch --prefix projects/ngx-drag-resize",
"prepublish:lib": "npm run lint:lib && npm run test:lib:ci && npm run build:lib:prod",
"predeploy:demo": "npm run prepublish:lib && npm run lint:demo && npm run test:demo:ci && npm run build:demo:prod",
"publish:lib": "npm run prepublish:lib && cd dist/ngx-drag-resize && npm publish",
"deploy:demo": "npm run predeploy:demo && firebase deploy"
"publish:lib": "npm run prepublish:lib && cd dist/ngx-drag-resize && npm publish"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit 63dda9e

Please sign in to comment.