Skip to content

Commit

Permalink
chore: move staging to main branch (#635) (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
maalni authored Nov 29, 2024
1 parent 549a780 commit eee9048
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ updates:
directory: /.github/
schedule:
interval: daily
target-branch: staging
- package-ecosystem: npm
directory: /
schedule:
interval: daily
versioning-strategy: increase
target-branch: staging
8 changes: 4 additions & 4 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches:
- main
- staging
- production
pull_request:
branches:
- '**'
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
build:
needs: [check-typescript, check-prettier]
runs-on: ubuntu-latest
environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}
environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/production' && '(Production)') || '(Preview)' }}
env:
VITE_BACKEND_URL: ${{ vars.BACKEND_URL }}
steps:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: 'build'
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/production' && '(Production)') || '(Preview)' }}
- name: 'Delete old deployments'
uses: andykenward/github-actions-cloudflare-pages/[email protected]
with:
Expand All @@ -101,5 +101,5 @@ jobs:
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.event.pull_request.head.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.event.pull_request.head.ref == 'refs/heads/production' && '(Production)') || '(Preview)' }}

2 changes: 1 addition & 1 deletion .github/workflows/delete-redundant-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.event.pull_request.head.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.event.pull_request.head.ref == 'refs/heads/production' && '(Production)') || '(Preview)' }}

0 comments on commit eee9048

Please sign in to comment.