Skip to content

Commit 7757888

Browse files
committed
refactor: update GitHub Actions workflow to enable push triggers and modify .gitignore for secrets
1 parent c2f2a5e commit 7757888

File tree

5 files changed

+25
-27
lines changed

5 files changed

+25
-27
lines changed

.github/workflows/Contribution.Manager.VPS.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: Contribution Manager App - VPS
22

33
on:
44
workflow_dispatch:
5-
# push:
6-
# branches: [ master, main ]
7-
# paths:
8-
# - 'src/**'
9-
# - 'public/**'
10-
# - 'package.json'
11-
# - 'package-lock.json'
12-
# - 'next.config.ts'
13-
# - 'tailwind.config.ts'
14-
# - 'tsconfig.json'
15-
# - 'deploy/Dockerfile.c-m-app'
16-
# - '.github/workflows/Contribution.Manager.VPS.yaml'
5+
push:
6+
branches: [ master, main ]
7+
paths:
8+
- 'src/**'
9+
- 'public/**'
10+
- 'package.json'
11+
- 'package-lock.json'
12+
- 'next.config.ts'
13+
- 'tailwind.config.ts'
14+
- 'tsconfig.json'
15+
- 'deploy/Dockerfile.c-m-app'
16+
- '.github/workflows/Contribution.Manager.VPS.yaml'
1717

1818
env:
1919
SERVICE_NAME: frontend

.github/workflows/Contribution.Manager.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
name: Contribution Manager App
22

33
on:
4-
push:
5-
branches: [ master, main ]
6-
paths:
7-
- 'src/**'
8-
- 'public/**'
9-
- 'package.json'
10-
- 'package-lock.json'
11-
- 'next.config.ts'
12-
- 'tailwind.config.ts'
13-
- 'tsconfig.json'
14-
- '.github/workflows/Contribution.Manager.yaml'
4+
workflow_dispatch:
5+
# push:
6+
# branches: [ master, main ]
7+
# paths:
8+
# - 'src/**'
9+
# - 'public/**'
10+
# - 'package.json'
11+
# - 'package-lock.json'
12+
# - 'next.config.ts'
13+
# - 'tailwind.config.ts'
14+
# - 'tsconfig.json'
15+
# - '.github/workflows/Contribution.Manager.yaml'
1516
# pull_request:
1617
# branches: [ master, main ]
1718
# paths:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ next-env.d.ts
4343
# firebase
4444
firebase-debug.log
4545
firestore-debug.log
46-
contribution-manager.json
46+
.secrets/
4747
gha-creds-*.json

.modified

Whitespace-only changes.

src/lib/server/secret-manager-server.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { SecretManagerServiceClient } from '@google-cloud/secret-manager';
22

3-
// Set Google Application Credentials for server-side use
4-
process.env.GOOGLE_APPLICATION_CREDENTIALS = 'contribution-manager.json';
5-
63
// This file should only be used server-side (API routes, getServerSideProps, etc.)
74
const client = new SecretManagerServiceClient();
85

0 commit comments

Comments
 (0)