mirror of
https://github.com/Lissy93/personal-security-checklist.git
synced 2024-10-01 01:35:37 -04:00
Adds workflow to maintain old site, updates Vercel config
This commit is contained in:
parent
f751934e53
commit
b0e67cfeb1
45
.github/workflows/maintain-gh-pages.yml
vendored
Normal file
45
.github/workflows/maintain-gh-pages.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: 🐙 Update gh-pages site
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths: ['CHECKLIST.md']
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.email "liss-bot@d0h.co"
|
||||
git config --global user.name "Liss.Bot"
|
||||
|
||||
- name: Copy CHECKLIST.md to gh-pages
|
||||
run: |
|
||||
# Fetch all branches
|
||||
git fetch --all
|
||||
|
||||
# Switch to gh-pages branch
|
||||
git checkout gh-pages
|
||||
|
||||
# Copy CHECKLIST from master branch
|
||||
git checkout master -- CHECKLIST.md
|
||||
|
||||
# Move and rename CHECKLIST.md to the root
|
||||
mv CHECKLIST.md README.md
|
||||
|
||||
# Check if there are changes, if so commit and push
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git add README.md
|
||||
git commit -m "Update README.md from master branch"
|
||||
git push origin gh-pages
|
||||
else
|
||||
echo "No changes in README.md"
|
||||
fi
|
@ -9,35 +9,6 @@
|
||||
"value": "public, max-age=31536000, immutable"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "X-Content-Type-Options",
|
||||
"value": "nosniff"
|
||||
},
|
||||
{
|
||||
"key": "X-Frame-Options",
|
||||
"value": "DENY"
|
||||
},
|
||||
{
|
||||
"key": "Referrer-Policy",
|
||||
"value": "strict-origin-when-cross-origin"
|
||||
},
|
||||
{
|
||||
"key": "Permissions-Policy",
|
||||
"value": "camera=(), microphone=(), geolocation=()"
|
||||
},
|
||||
{
|
||||
"key": "Strict-Transport-Security",
|
||||
"value": "max-age=63072000; includeSubDomains; preload"
|
||||
},
|
||||
{
|
||||
"key": "Content-Security-Policy",
|
||||
"value": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' https: data:;"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"cleanUrls": true,
|
||||
|
Loading…
Reference in New Issue
Block a user