Skip to content

Commit 8bb7ec1

Browse files
authored
Create deploy.yml (#147)
1 parent 7f97d81 commit 8bb7ec1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
on:
3+
push:
4+
branches: [ 'master' ]
5+
permissions:
6+
contents: read
7+
pages: write
8+
id-token: write
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
name: Build and deploy
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 12
18+
- run: |
19+
npm ci
20+
npm run lint
21+
npm run test
22+
npm run build
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v3
25+
- name: Upload artifact
26+
uses: actions/upload-pages-artifact@v2
27+
with:
28+
path: ''
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)