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

Fix workflows #136

Merged
merged 4 commits into from
Oct 4, 2024
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
7 changes: 5 additions & 2 deletions .github/workflows/main-migrations.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Deploy production
name: Deploy to production

on:
pull_request:
types: [closed]
push:
branches:
- main

jobs:
apply-main-migrations:
Expand Down Expand Up @@ -44,6 +47,7 @@ jobs:
run: npm run migrations:apply-main

prepare:
needs: apply-main-migrations
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -105,7 +109,6 @@ jobs:
publish-dir: "./dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Production deployment for ${{ matrix.name }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ matrix.netlifySiteId }}
7 changes: 5 additions & 2 deletions .github/workflows/staging-migrations.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy staging
name: Deploy to staging

on:
pull_request:
Expand Down Expand Up @@ -45,6 +45,7 @@ jobs:
run: npm run migrations:apply-staging

prepare:
needs: apply-staging-migrations
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -106,7 +107,9 @@ jobs:
publish-dir: "./dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Preview deployment for ${{ matrix.name }}
enable-commit-comment: false
enable-pull-request-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ matrix.netlifySiteId }}
Loading