Skip to content

Commit

Permalink
Create main.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
manix84 authored May 22, 2024
1 parent 7a75c60 commit fbb8f8f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deployment

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm clean-install

- name: Pre-Deploy
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit fbb8f8f

Please sign in to comment.