Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
kwongtn committed Jun 27, 2024
2 parents 4573b7f + 86b6a1a commit 122c049
Show file tree
Hide file tree
Showing 108 changed files with 5,780 additions and 1,539 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -43,4 +45,5 @@ jobs:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROSAK_7223B }}"
channelId: live
target: public
projectId: rosak-7223b
9 changes: 8 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"

- run: npm ci && npm run buildStaging
env:
Expand All @@ -32,4 +39,4 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: https://sentry.io/
with:
environment: ${{ github.ref_name }}
environment: ${{ github.head_ref || github.ref_name }}
6 changes: 6 additions & 0 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"

- run: npm i -g angular-build-info && npm ci && npm run buildStaging
timeout-minutes: 30
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Create Sentry release
uses: getsentry/action-release@v1
if: always()
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
Expand All @@ -35,6 +40,7 @@ jobs:
environment: staging

- uses: FirebaseExtended/action-hosting-deploy@v0
if: always()
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROSAK_7223B }}"
Expand Down
13 changes: 8 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"sourceMap": true,
"outputPath": "dist/public",
Expand All @@ -45,7 +45,10 @@
"node_modules/marked/marked.min.js",
"node_modules/mermaid/dist/mermaid.min.js",
"node_modules/emoji-toolkit/lib/js/joypixels.min.js"
]
],
"customWebpackConfig": {
"path": "./webpack.config.js"
}
},
"configurations": {
"production": {
Expand Down Expand Up @@ -108,7 +111,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular-builders/custom-webpack:dev-server",
"configurations": {
"production": {
"buildTarget": "public:build:production"
Expand All @@ -120,13 +123,13 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular-builders/custom-webpack:extract-i18n",
"options": {
"buildTarget": "public:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular-builders/custom-webpack:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
Expand Down
Loading

0 comments on commit 122c049

Please sign in to comment.