Skip to content

v1.1.0 - PV Panels

v1.1.0 - PV Panels #37

Workflow file for this run

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@v3
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
- name: Install
run: npm ci
- name: Build and Deploy
env:
NODE_ENV: production
# This is set automatically by github
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