Skip to content

Commit

Permalink
test build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshayp02 committed Oct 15, 2023
1 parent ac79664 commit 0034d07
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: '14'

- 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 'vaishnavi-3969'
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

0 comments on commit 0034d07

Please sign in to comment.