Skip to content

Commit

Permalink
ci: github action for automatic building and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleDebug authored Feb 10, 2024
1 parent 0633524 commit d69ecf2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Check commit message 💬
if: ! contains(github.event.head_commit.message, '[ci-deploy]')
exit 1

- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
run: |
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist

0 comments on commit d69ecf2

Please sign in to comment.