Skip to content

Commit 0ba7301

Browse files
committed
ci: Add gh-pages action.
1 parent 09ec0b8 commit 0ba7301

File tree

4 files changed

+43
-43
lines changed

4 files changed

+43
-43
lines changed

.github/workflows/create-release.yml renamed to .github/workflows/bump-version.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,43 @@ jobs:
1111
steps:
1212
- name: Checkout Code
1313
uses: actions/checkout@v2
14+
1415
- name: Automated Version Bump
1516
uses: phips28/[email protected]
1617
env:
17-
GITHUB_USER: ${{secrets.CI_NAME}}
18-
GITHUB_EMAIL: ${{secrets.CI_EMAIL}}
18+
GITHUB_USER: ${{ secrets.CI_NAME }}
19+
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
1920

2021
publish-npm:
2122
needs: bump-version
2223
runs-on: ubuntu-latest
2324
steps:
25+
- name: Checkout Code
2426
- uses: actions/checkout@v2
27+
28+
- name: Set up Node.js
2529
- uses: actions/setup-node@v1
2630
with:
2731
node-version: 12
2832
registry-url: https://registry.npmjs.org/
2933
- run: npm ci
3034
- run: npm publish
3135
env:
32-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3337

3438
publish-gpr:
3539
needs: bump-version
3640
runs-on: ubuntu-latest
3741
steps:
42+
- name: Checkout Code
3843
- uses: actions/checkout@v2
44+
45+
- name: Set up Node.js
3946
- uses: actions/setup-node@v1
4047
with:
4148
node-version: 12
4249
registry-url: https://npm.pkg.github.com/
4350
- run: npm ci
4451
- run: npm publish
4552
env:
46-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
53+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Gh Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v2
14+
15+
- name: Install
16+
run: npm install
17+
18+
- name: Build
19+
run: npm run build:example
20+
21+
- name: Deploy
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./example-dist
26+
user_name: ${{ secrets.CI_NAME }}
27+
user_email: ${{ secrets.CI_EMAIL }}

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ jobs:
1515
uses: actions/setup-node@v1
1616
with:
1717
node-version: 12
18-
- run: npm install
19-
- run: npm run lint
18+
19+
- name: Lint
20+
run: |
21+
npm install
22+
npm run lint

.travis.yml

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

0 commit comments

Comments
 (0)