Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 👷‍♀️ Build website to deployment branch

on:
workflow_dispatch:

release:
types: [published]

jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v6

- name: Install
run: npm ci

- name: Build and Deploy
env:
NODE_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run: |
git config user.name "Automated"
git config user.email "[email protected]"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/open-pv/website.git
npm run build
npm run deploy
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"deploy:test": "gh-pages -d dist -b gh-pages",
"format": "prettier --write .",
"test": "vitest",
"test:run": "vitest run"
"test:run": "vitest run",
"deploy": "gh-pages -d dist -b build"
},
"dependencies": {
"@chakra-ui/react": "^3.16.1",
Expand Down
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<loc>https://openpv.de/</loc>

<lastmod>2024-08-01</lastmod>
<lastmod>2025-12-29</lastmod>

<changefreq>monthly</changefreq>

Expand Down