Skip to content

Commit

Permalink
feat: move conf netlify to cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 10, 2024
1 parent dc60efd commit 2022f51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ jobs:
- name: Install Netlify CLI
run: npm install netlify-cli --production

- name: Add netlify.toml File for Headers
run: |
echo "[[headers]]" > netlify.toml
echo " for = \"/*\"" >> netlify.toml
echo " [headers.values]" >> netlify.toml
echo " Access-Control-Allow-Origin = \"*\"" >> netlify.toml
echo " Access-Control-Allow-Headers = \"*\"" >> netlify.toml
echo " Access-Control-Allow-Methods = \"*\"" >> netlify.toml
echo " Access-Control-Expose-Headers = \"*\"" >> netlify.toml
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
CNAME
CODE_OF_CONDUCT.md
SECURITY.md
LICENSE
node_modules
package-lock.json
netlify.toml
7 changes: 0 additions & 7 deletions netlify.toml

This file was deleted.

0 comments on commit 2022f51

Please sign in to comment.