Skip to content

Commit

Permalink
feat: add netlify.toml to apps wd-316 (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove authored Jan 7, 2024
1 parent e1e1399 commit 62aac11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[*.yml]
[*.{yml,toml}]
indent_style = space
indent_size = 2
9 changes: 7 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,25 @@ jobs:
project:
- certifications-whatislove-dev
- whatislove-dev
env:
PACKAGE_DIR: packages/${{ matrix.project }}
environment:
name: ${{ matrix.project }}
url: ${{ fromJson(steps.deployment.outputs.NETLIFY_OUTPUT).url }}
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.project }}
path: build
path: ${{ env.PACKAGE_DIR }}/build

- name: Deploy
id: deployment
uses: South-Paw/action-netlify-cli@v2
with:
args: 'deploy --json --prod --site ${{ matrix.project }} --dir build'
args: 'deploy --json --prod --site ${{ matrix.project }} --filter ${{ env.PACKAGE_DIR }} --dir ${{ env.PACKAGE_DIR }}/build'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
4 changes: 4 additions & 0 deletions packages/certifications-whatislove-dev/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/"
status = 200
4 changes: 4 additions & 0 deletions packages/whatislove-dev/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/404.html"
status = 404

0 comments on commit 62aac11

Please sign in to comment.