.github/workflows/build.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |