Skip to content

fix: force dark theme #40

fix: force dark theme

fix: force dark theme #40

Workflow file for this run

name: Deploy to Test (https://code-star.github.io/codestar-website-next/)
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build components 🔧
# .nojekyll: do not ignore _ dirs
run: |
touch .env
echo TWITTER_ACCESS_TOKEN=${{ secrets.TWITTER_ACCESS_TOKEN }} >> .env
echo TWITTER_USER_NAME=${{ secrets.TWITTER_USER_NAME }} >> .env
echo YOUTUBE_API_KEY=${{ secrets.YOUTUBE_API_KEY }} >> .env
echo YOUTUBE_PLAYLIST_ID=${{ secrets.YOUTUBE_PLAYLIST_ID }} >> .env
echo MASTODON_ACCESS_TOKEN=${{ secrets.MASTODON_ACCESS_TOKEN }} >> .env
echo MASTODON_ID=${{ secrets.MASTODON_ID }} >> .env
npm ci
echo "{ \"basePath\": \"/codestar-website-next\" }" > config.json
npx next build && npx next export
touch out/.nojekyll
# CI: false # true -> fails on warning
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch