Skip to content

Commit

Permalink
ci: separate staging.yml for frontend and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
1WHISKY committed Oct 14, 2024
1 parent 9cfb436 commit c1554fd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/staging_backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Staging Backend

on:
push:
branches:
- main
paths:
- "apps/backend/**"
- "apps/backend-e2e/**"

jobs:
publish_backend:
permissions:
packages: write
uses: momentum-mod/website/.github/workflows/backend_docker_image.yml@main
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Publish Staging
name: Publish Staging Frontend

on:
push:
branches:
- main
paths:
- "apps/frontend/**"
- "apps/frontend-e2e/**"

jobs:
publish_frontend:
uses: momentum-mod/website/.github/workflows/frontend_cf_pages.yml@main
with:
project_name: 'frontend-staging'
secrets: inherit

publish_backend:
permissions:
packages: write
uses: momentum-mod/website/.github/workflows/backend_docker_image.yml@main
secrets: inherit

0 comments on commit c1554fd

Please sign in to comment.