Skip to content

Commit

Permalink
Created action
Browse files Browse the repository at this point in the history
  • Loading branch information
mearyansingh committed Mar 1, 2024
1 parent 1caacde commit a2609f4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy

on:
push:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v1

- name: Build
run: |
npm install
npm run-script build
env:
REACT_APP_GITHUB_URL: ${{ secrets.REACT_APP_GITHUB_URL }}
REACT_APP_GITHUB_TOKEN: ${{ secrets.REACT_APP_GITHUB_TOKEN }}

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build

0 comments on commit a2609f4

Please sign in to comment.