Skip to content

Merge pull request #377 from open-pv/dependabot/npm_and_yarn/emotion/… #35

Merge pull request #377 from open-pv/dependabot/npm_and_yarn/emotion/…

Merge pull request #377 from open-pv/dependabot/npm_and_yarn/emotion/… #35

Workflow file for this run

name: 👷 Deploy test site to github pages
on:
workflow_dispatch:
push:
branches:
- main
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
npm install @rollup/rollup-linux-x64-gnu
- 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
echo "User-agent: *" > public/robots.txt
echo "Disallow: /" >> public/robots.txt
echo "test.openpv.de" > public/CNAME
npm run build
npm run deploy:test