Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.

Commit a2f4cdf

Browse files
committed
tmp remove deploy workflow
1 parent e91d33f commit a2f4cdf

File tree

1 file changed

+62
-61
lines changed

1 file changed

+62
-61
lines changed

.github/workflows/vitepress.yml

Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
1-
name: VitePress CI/CD
1+
# TODO:
2+
# name: VitePress CI/CD
23

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:
1718

18-
permissions:
19-
pages: write
20-
id-token: write
19+
# permissions:
20+
# pages: write
21+
# id-token: write
2122

22-
concurrency:
23-
group: pages
24-
cancel-in-progress: false
23+
# concurrency:
24+
# group: pages
25+
# cancel-in-progress: false
2526

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
4950

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
5455

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 }}
5859

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

Comments
 (0)