Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 committed Dec 12, 2024
1 parent df5a885 commit bc32b30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/website-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- TestGHPages

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -37,6 +38,13 @@ jobs:
- name: Build
run: pnpm --filter "@typespec/website..." run build

- name: Add headers to _headers file
run: |
echo '/ Content-Security-Policy: frame-ancestors \'none\'' > ./dist/_headers
echo '/ X-Frame-Options: DENY' >> ./dist/_headers
echo '/ X-Content-Type-Options: nosniff' >> ./dist/_headers
echo '/ Referrer-Policy: strict-origin-when-cross-origin' >> ./dist/_headers
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit bc32b30

Please sign in to comment.