Skip to content

.github/workflows/build.yml #7

.github/workflows/build.yml

.github/workflows/build.yml #7

Workflow file for this run

on:
workflow_dispatch:
jobs:
build:
name: Compile & minify
runs-on: ubuntu-latest
steps:
- name: Clone from GitHub
run: git clone https://github.com/ehanahamed/ehui.git
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run npm script
run: |
cd ehui
npm install
npm run build
- name: Commit & push to GitHub
run: |
cd ehui
git add .
git config --global user.name "Ehan"
git config --global user.email "[email protected]"
git commit -m "Compile & minify"
git push https://ehanahamed:${{ secrets.GH_TOKEN }}@github.com/ehanahamed/ehui.git --all