Skip to content

Commit

Permalink
Create deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul authored Jun 11, 2024
1 parent 0833c81 commit e41c80e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to GitHub pages
on:
push:
branches:
- master
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false

- name: NPM install 📦
uses: bahmutov/npm-install@v1

- name: Build docs 🏗
run: export NODE_OPTIONS=--openssl-legacy-provider && npm run docs:build

# https://github.com/marketplace/actions/github-pages-action
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
cname: docs.krayincrm.com

0 comments on commit e41c80e

Please sign in to comment.