Skip to content

Commit

Permalink
chore: add deploy-preview (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Jul 12, 2024
1 parent 5d056b1 commit b19288f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 🚀 Deploy / preview
on: pull_request

jobs:
build_and_preview:
name: Firebase
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build --base-href='/'
- name: Debug output
run: tree dist/apps/taiga-lumbermill/browser -P '*.html'
- name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0
if: env.IS_OWNER_MODE == 'true'
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_TAIGA_LUMBERMILL_SA }}
projectId: taiga-lumbermill-a3373
expires: 1d

concurrency:
group: firebase-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
12 changes: 12 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "dist/apps/taiga-lumbermill/browser",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit b19288f

Please sign in to comment.