feat(firebase): try firebase actions
This commit is contained in:
29
.github/workflows/on-push-or-pull.yml
vendored
29
.github/workflows/on-push-or-pull.yml
vendored
@@ -86,3 +86,32 @@ jobs:
|
||||
path: ${{ env.CACHE_NODE_MODULES_PATH }}
|
||||
key: node_modules-${{ hashFiles('**/package-lock.json') }}
|
||||
- run: npm run lint
|
||||
|
||||
# firebase preview
|
||||
build_and_preview:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
outputs:
|
||||
output_url: ${{ steps.firebase_hosting_preview.outputs.details_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ env.CACHE_DIST_PATH }}
|
||||
key: dist-${{ github.run_id }}
|
||||
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||
continue-on-error: true
|
||||
id: firebase_hosting_preview
|
||||
with:
|
||||
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
||||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NGX_BOOTSTRAP_DEMO }}'
|
||||
projectId: ngx-bootstrap-demo
|
||||
channelId: ${{ env.FIREBASE_CHANNEL }}
|
||||
expires: 7d
|
||||
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: FirebaseExtended/action-hosting-deploy@v0
|
||||
# with:
|
||||
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
||||
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NGX_FILE_UPLOAD }}'
|
||||
# projectId: ngx-file-upload
|
||||
|
||||
Reference in New Issue
Block a user