Skip to content

Commit d9b4332

Browse files
committed
feat: create CI workflow for website deployment
1 parent 9505cad commit d9b4332

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/build.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [12.x]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install dependencies
20+
run: yarn
21+
- name: Run build
22+
run: yarn build
23+
- name: Deploy
24+
uses: JamesIves/[email protected]
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
27+
BRANCH: gh-pages
28+
FOLDER: docs/.vuepress/dist
29+
CLEAN: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<img src=".github/qa.gif" alt="Imagem de QA" width="150">
1717
</br>
18-
<img src="https://img.shields.io/github/workflow/status/vcwild/qa4noobs/complete-checking?style=flat-square&color=blueviolet" alt="build" />
18+
<img src="https://img.shields.io/github/workflow/status/vcwild/qa4noobs/deploy?style=flat-square&color=blueviolet" alt="build" />
1919

2020
<img src="https://img.shields.io/badge/topics-42-blueviolet?style=flat-square" alt="topics" />
2121
<img src="https://img.shields.io/tokei/lines/github/vcwild/qa4noobs?color=blueviolet&style=flat-square" alt="topics" />

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
},
99
"scripts": {
1010
"docs:dev": "vuepress dev docs",
11-
"docs:build": "vuepress build docs"
11+
"docs:build": "vuepress build docs",
12+
"build": "vuepress build docs"
1213
},
1314
"dependencies": {
1415
"vuepress-theme-yuu": "^3.1.1"

0 commit comments

Comments
 (0)