Skip to content

Commit cceb274

Browse files
chore(CI): fix GitHub Pages workflow (#5)
1 parent f3ef82a commit cceb274

File tree

3 files changed

+52
-24
lines changed

3 files changed

+52
-24
lines changed

.github/workflows/GHPages.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow one concurrent deployment
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: true
18+
19+
jobs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- uses: actions/setup-node@v3
30+
with:
31+
node-version: 18
32+
33+
- name: Install Packages
34+
run: npm install
35+
36+
- name: Build docs
37+
run: |+
38+
export NODE_OPTIONS=--openssl-legacy-provider
39+
npm run docs:build
40+
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v2
43+
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v1
46+
with:
47+
path: ./docs/.vuepress/dist
48+
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v1

.github/workflows/Website.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/.vuepress/components/eslint-playground.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<script>
1414
// https://github.com/vuejs/vuepress/issues/451
15-
import EslintEditor from "../../../node_modules/vue-eslint-editor.vue"
15+
import EslintEditor from "../../../node_modules/vue-eslint-editor/dist/index.vue"
1616
import { rules } from "../../../"
1717
1818
export default {

0 commit comments

Comments
 (0)