From 3ed99f24f05c2a7cc665ad60e6ff65a1fd9ef8e7 Mon Sep 17 00:00:00 2001
From: Pawel
Date: Thu, 10 Oct 2024 16:50:36 +0200
Subject: [PATCH] update deployment configuration for website
---
.github/workflows/deploy-website.yml | 26 ++++++++++++++++++--------
website/app/privacy-policy/page.tsx | 1 -
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml
index fec3eb50..650b10d1 100644
--- a/.github/workflows/deploy-website.yml
+++ b/.github/workflows/deploy-website.yml
@@ -9,9 +9,9 @@ on:
- "website/**"
jobs:
- deploy:
+ # Build job
+ build:
runs-on: ubuntu-latest
-
steps:
- name: Checkout code
uses: actions/checkout@v3
@@ -19,7 +19,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
- node-version: "20"
+ node-version: "18"
- name: Install dependencies for the whole workspace
run: |
@@ -29,9 +29,19 @@ jobs:
run: |
npm run build --workspaces
- - name: Deploy to GitHub Pages
- uses: peaceiris/actions-gh-pages@v3
+ - name: Upload build artifact
+ uses: actions/upload-pages-artifact@v1
with:
- personal_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: website/out
- publish_branch: gh-pages
+ path: website/out
+
+ # Deployment job
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v1
diff --git a/website/app/privacy-policy/page.tsx b/website/app/privacy-policy/page.tsx
index 8694fa33..70f19a86 100644
--- a/website/app/privacy-policy/page.tsx
+++ b/website/app/privacy-policy/page.tsx
@@ -67,7 +67,6 @@ export default function PrivacyPolicy() {
information, feel free to contact us.
-
This policy is effective as of 16 December 2019.