Skip to content

Add background class to root div in index.html #8

Add background class to root div in index.html

Add background class to root div in index.html #8

Workflow file for this run

name: Build and Release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Create dist archive
run: |
cd dist
zip -r ../dist.zip .
cd ..
- name: Generate release tag
id: tag
run: echo "tag=release-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}
name: Release ${{ steps.tag.outputs.tag }}
body: Automated release from commit ${{ github.sha }}
files: ./dist.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}