|
1 |
| -name: VitePress CI/CD |
| 1 | +# TODO: |
| 2 | +# name: VitePress CI/CD |
2 | 3 |
|
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - paths: |
8 |
| - - .github/workflows/vitepress.yml |
9 |
| - - 'docs/**' |
10 |
| - pull_request: |
11 |
| - branches: |
12 |
| - - main |
13 |
| - paths: |
14 |
| - - .github/workflows/vitepress.yml |
15 |
| - - 'docs/**' |
16 |
| - workflow_dispatch: |
| 4 | +# on: |
| 5 | +# push: |
| 6 | +# branches: |
| 7 | +# - main |
| 8 | +# paths: |
| 9 | +# - .github/workflows/vitepress.yml |
| 10 | +# - 'docs/**' |
| 11 | +# pull_request: |
| 12 | +# branches: |
| 13 | +# - main |
| 14 | +# paths: |
| 15 | +# - .github/workflows/vitepress.yml |
| 16 | +# - 'docs/**' |
| 17 | +# workflow_dispatch: |
17 | 18 |
|
18 |
| -permissions: |
19 |
| - pages: write |
20 |
| - id-token: write |
| 19 | +# permissions: |
| 20 | +# pages: write |
| 21 | +# id-token: write |
21 | 22 |
|
22 |
| -concurrency: |
23 |
| - group: pages |
24 |
| - cancel-in-progress: false |
| 23 | +# concurrency: |
| 24 | +# group: pages |
| 25 | +# cancel-in-progress: false |
25 | 26 |
|
26 |
| -jobs: |
27 |
| - build: |
28 |
| - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') |
29 |
| - runs-on: ubuntu-latest |
30 |
| - defaults: |
31 |
| - run: |
32 |
| - working-directory: docs |
33 |
| - steps: |
34 |
| - - uses: actions/checkout@v3 |
35 |
| - - name: Use Node.js |
36 |
| - uses: actions/setup-node@v3 |
37 |
| - with: |
38 |
| - node-version: 20.x |
39 |
| - cache: npm |
40 |
| - cache-dependency-path: docs/package-lock.json |
41 |
| - - run: npm ci |
42 |
| - - run: npm run build --if-present |
43 |
| - - run: echo 'handson.vuejs-jp.org' > CNAME |
44 |
| - working-directory: docs/.vitepress/dist |
45 |
| - - uses: actions/upload-artifact@v3 |
46 |
| - with: |
47 |
| - name: dist |
48 |
| - path: docs/.vitepress/dist |
| 27 | +# jobs: |
| 28 | +# build: |
| 29 | +# if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') |
| 30 | +# runs-on: ubuntu-latest |
| 31 | +# defaults: |
| 32 | +# run: |
| 33 | +# working-directory: docs |
| 34 | +# steps: |
| 35 | +# - uses: actions/checkout@v3 |
| 36 | +# - name: Use Node.js |
| 37 | +# uses: actions/setup-node@v3 |
| 38 | +# with: |
| 39 | +# node-version: 20.x |
| 40 | +# cache: npm |
| 41 | +# cache-dependency-path: docs/package-lock.json |
| 42 | +# - run: npm ci |
| 43 | +# - run: npm run build --if-present |
| 44 | +# - run: echo 'handson.vuejs-jp.org' > CNAME |
| 45 | +# working-directory: docs/.vitepress/dist |
| 46 | +# - uses: actions/upload-artifact@v3 |
| 47 | +# with: |
| 48 | +# name: dist |
| 49 | +# path: docs/.vitepress/dist |
49 | 50 |
|
50 |
| - deploy: |
51 |
| - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' # PR 時はデプロイを実行しない |
52 |
| - runs-on: ubuntu-latest |
53 |
| - needs: build |
| 51 | +# deploy: |
| 52 | +# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' # PR 時はデプロイを実行しない |
| 53 | +# runs-on: ubuntu-latest |
| 54 | +# needs: build |
54 | 55 |
|
55 |
| - environment: |
56 |
| - name: github-pages |
57 |
| - url: ${{ steps.deployment.outputs.page_url }} |
| 56 | +# environment: |
| 57 | +# name: github-pages |
| 58 | +# url: ${{ steps.deployment.outputs.page_url }} |
58 | 59 |
|
59 |
| - steps: |
60 |
| - - uses: actions/download-artifact@v3 |
61 |
| - with: |
62 |
| - name: dist |
63 |
| - - uses: actions/upload-pages-artifact@v1 |
64 |
| - with: |
65 |
| - path: . |
66 |
| - - name: Deploy to GitHub Pages |
67 |
| - id: deployment |
68 |
| - uses: actions/deploy-pages@v1 |
| 60 | +# steps: |
| 61 | +# - uses: actions/download-artifact@v3 |
| 62 | +# with: |
| 63 | +# name: dist |
| 64 | +# - uses: actions/upload-pages-artifact@v1 |
| 65 | +# with: |
| 66 | +# path: . |
| 67 | +# - name: Deploy to GitHub Pages |
| 68 | +# id: deployment |
| 69 | +# uses: actions/deploy-pages@v1 |
0 commit comments