Skip to content

Commit

Permalink
ci: Set up GitHub Action for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie committed Oct 10, 2023
1 parent dcc381c commit 64bebdd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Deploy
on:
push:
branches:
- main
- master
pull_request: {}
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node ✨
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm

- name: Install and Build 🔧
run: |
npm i
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pages
FOLDER: dist
CLEAN: true

0 comments on commit 64bebdd

Please sign in to comment.