From b0e67cfeb12cd8d744b97a303ebb274e55611ad4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 11 Feb 2024 00:12:20 +0000 Subject: [PATCH] Adds workflow to maintain old site, updates Vercel config --- .github/workflows/maintain-gh-pages.yml | 45 +++++++++++++++++++++++++ web/vercel.json | 29 ---------------- 2 files changed, 45 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/maintain-gh-pages.yml diff --git a/.github/workflows/maintain-gh-pages.yml b/.github/workflows/maintain-gh-pages.yml new file mode 100644 index 0000000..1a1bb33 --- /dev/null +++ b/.github/workflows/maintain-gh-pages.yml @@ -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 diff --git a/web/vercel.json b/web/vercel.json index 85ea880..d927495 100644 --- a/web/vercel.json +++ b/web/vercel.json @@ -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,