Skip to content

Commit

Permalink
build yml
Browse files Browse the repository at this point in the history
  • Loading branch information
syedzayyan committed Dec 31, 2023
1 parent 5e03276 commit 987b278
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: GitHub Pages deploy

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '16.x'

- name: Installing my packages
run: npm ci

- name: Build my App
run: npm run build && npm run export && touch ./out/.nojekyll

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: public # The branch the action will deploy to
FOLDER: out # The folder the action will deploy to

0 comments on commit 987b278

Please sign in to comment.