Skip to content

Commit

Permalink
add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Sep 5, 2023
1 parent 8ba2459 commit dfacb77
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
- main

permissions:
contents: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

deploy:
name: Build and Deploy
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

# Runs a single command using the runners shell
- name: Build the project
run: npm ci && npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist

0 comments on commit dfacb77

Please sign in to comment.