Skip to content

[feature] Added dark theme #155

[feature] Added dark theme

[feature] Added dark theme #155

Workflow file for this run

---
name: OpenWISP Website CI Build
on:
push:
branches:
- master
pull_request:
branches:
- master
- new
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install test dependencies
run: |
yarn install
pip install -U pip setuptools wheel
pip install -r requirements.txt
- name: QA checks
run: ./run-qa-checks
- name: Build
run: make publish
- name: Setup Google Cloud
# if: ${{ github.event_name=='push' }}
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
project_id: ${{ secrets.GCS_PROJECT_ID }}
export_environment_variables: true
- name: 'Set up Cloud SDK'
if: ${{ github.event_name=='push' }}
uses: 'google-github-actions/setup-gcloud@v2'
- name: Deploy pages to openwisp.org
if: ${{ github.event_name=='push' }}
run: gsutil -m rsync -r ${{ env.SRC_URL }} ${{ env.DST_URL }}
env:
SRC_URL: /home/runner/work/OpenWISP-Website/OpenWISP-Website/output/
DST_URL: gs://${{ secrets.GCS_WEBSITE_BUCKET_NAME }}/
invalidate-cache:
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.result == 'success' }} && ${{ github.event_name=='push' }}
steps:
- name: Authenticate to Google Cloud
if: ${{ github.event_name=='push' }}
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
project_id: ${{ secrets.GCS_PROJECT_ID }}
export_environment_variables: true
- name: Invalid CDN cache on GCP
if: ${{ github.event_name=='push' }}
uses: stefanodotit/github-actions-invalidate-gcp-cdn@v1
with:
load_balancer_name: ${{ secrets.GCS_MAIN_LOAD_BALANCER_NAME }}
host: openwisp.org
path: '/*'