Skip to content

Commit 17a5ca0

Browse files
authored
Create build.yml
1 parent 61f0051 commit 17a5ca0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- run: yarn install
13+
- run: yarn run generate
14+
- uses: JamesIves/github-pages-deploy-action@releases/v3
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
BRANCH: gh-pages
18+
FOLDER: dist
19+
- run: zip -r dist dist/*
20+
- uses: actions/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
upload_url: ${{ github.event.release.upload_url }}
25+
asset_path: dist.zip
26+
asset_name: dist.zip
27+
asset_content_type: application/zip

0 commit comments

Comments
 (0)