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

Staging → Master #260

Merged
merged 20 commits into from
Oct 4, 2023
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
53 changes: 16 additions & 37 deletions .github/workflows/mm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:

jobs:
verify:
name: Verify Pull Request
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -172,49 +173,26 @@ jobs:
}
]
}
publish_chromatic:
name: Publish to chromatic
if: github.event_name == 'pull_request' && contains(github.ref, 'refs/heads/master')
needs: verify
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
- name: Failed chromatic publishing notification
if: failure()
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_API_CHANNEL_ID }}
payload: |
{
"attachments": [
{
"color": "danger",
"fields": [
{
"title": "*Failed to publish to chromatic*",
"value": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
- name: Success chromatic publishing notification
if: success()
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_API_CHANNEL_ID }}
payload: |
{
"attachments": [
{
"color": "good",
"fields": [
{
"title": "*Published to chromatic*"
}
]
}
]
}
staging_deployment:
name: Deploy to Staging
if: contains(github.event_name, 'push') && contains(github.ref, 'refs/heads/staging')
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -262,6 +240,7 @@ jobs:
]
}
production_deployment:
name: Deploy to Production
if: contains(github.event_name, 'push') && contains(github.ref, 'refs/heads/master')
runs-on: ubuntu-latest
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ yarn-error.log*

# vite visualization
stats.html

# personal git shells
git_shell.sh
Loading