Skip to content

Commit

Permalink
checking github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gururajj77 committed Jan 11, 2024
1 parent a5eea4f commit 369361d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ name: Deploy to Firebase Hosting on merge
push:
branches:
- master

env:
FIREBASE_CLI_EXPERIMENTS: webframeworks

jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand All @@ -18,4 +22,3 @@ jobs:
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}"
channelId: live
projectId: bervipost
env:FIREBASE_CLI_EXPERIMENTS: webframeworks
8 changes: 4 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
"on": pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}"
projectId: bervipost
4 changes: 2 additions & 2 deletions src/app/feed/feed.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="feed-container">
<CustomButton [buttonName]="'Write'" (click)="openWrite()" />
<post-dialog [isDialogOpen]="openDialogBox" (closeWrite)="openWrite()" />
<CustomButton [buttonName]="'Write'" (click)="toggleWrite()" />
<post-dialog [isDialogOpen]="openDialogBox" (closeWrite)="toggleWrite()" />
<h2 class="feed-title">News Feed</h2>
<div class="feed-list">
<div class="feed-item">
Expand Down
2 changes: 1 addition & 1 deletion src/app/feed/feed.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class FeedComponent {

private readonly auth: Auth = inject(Auth);
openDialogBox: boolean = false
openWrite() {
toggleWrite() {
this.openDialogBox = !this.openDialogBox;
}

Expand Down

0 comments on commit 369361d

Please sign in to comment.