fix: use .mjs for rollup config #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Documentation | |
on: | |
push: | |
branches: | |
- main | |
- next | |
- vue2 | |
- beta | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- run: npm run build | |
- run: | | |
cd demo | |
npm install | |
npm run build-all | |
- run: | | |
cd docs | |
npm install | |
- run: npm run build-docs | |
- name: Deploy | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: docs/src/.vuepress/dist | |
clean-exclude: | | |
next | |
vue2 | |
beta | |
- name: Deploy next | |
if: github.ref == 'refs/heads/next' | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: docs/src/.vuepress/dist | |
target-folder: ./next | |
- name: Deploy vue2 | |
if: github.ref == 'refs/heads/vue2' | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: docs/src/.vuepress/dist | |
target-folder: ./vue2 | |
- name: Deploy beta | |
if: github.ref == 'refs/heads/beta' | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: docs/src/.vuepress/dist | |
target-folder: ./beta |