Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to prod #207

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ci-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:

env:
PR_URL: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}
BRANCH_NAME: ${{ github.event.pull_request.head.ref || github.ref_name }}

jobs:
init:
Expand All @@ -25,7 +26,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache dependencies
id: cache
Expand All @@ -47,7 +48,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache dependencies
id: cache
Expand Down Expand Up @@ -85,7 +86,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache dependencies
id: cache
Expand All @@ -102,6 +103,8 @@ jobs:

- name: Build
run: yarn pages:build
env:
NEXT_PUBLIC_API_URL: ${{ env.BRANCH_NAME == 'prod' && secrets.NEXT_PUBLIC_API_URL || secrets.NEXT_PUBLIC_API_URL_DEV }}

- name: Deploy to Cloudflare
id: deploy
Expand All @@ -110,7 +113,7 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
command: pages deploy --branch=${{ github.event.pull_request.head.ref || github.ref_name }}
command: pages deploy --branch=${{ env.BRANCH_NAME }}

outputs:
preview-url: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
Expand All @@ -123,7 +126,7 @@ jobs:
if: always()

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Send Lint Failed Notification
if: ${{ needs.lint.result == 'failure' }}
Expand All @@ -149,5 +152,5 @@ jobs:
with:
TYPE: success
TITLE: "✅ Build Succeeded"
DESCRIPTION: "Preview URL: ${{ needs.build_and_deploy.outputs.preview-url }}\\nEnvironment: ${{ needs.build_and_deploy.outputs.deploy-env }})"
DESCRIPTION: "Preview URL: ${{ needs.build_and_deploy.outputs.preview-url }}\\nEnvironment: ${{ needs.build_and_deploy.outputs.deploy-env }}"
DISCORD_WEBHOOK_URL: ${{ secrets.SANDBOX_DISCORD_WEBHOOK_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-cache-after-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup cache
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Send PR Notification
uses: ./.github/actions/notification
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch i18n Translations
run: node fetchTranslations.js
Expand Down
Loading