CI #26
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
name: CI | |
on: workflow_dispatch | |
jobs: | |
Continuous-Integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Move Artifacts | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
git config --global user.name 'riteshsonawane1372' | |
git config --global user.email '[email protected]' | |
git checkout --orphan gh-pages | |
git rm -rf . | |
mv -f build/* . | |
git add . | |
git commit -m 'GitHub Actions: Deploy to gh-pages' | |
git push -f origin gh-pages | |