From 4d7e6585ecb07ad008327d442053f73d93a2d3d1 Mon Sep 17 00:00:00 2001 From: hiCasper Date: Wed, 22 Apr 2020 09:58:10 +0800 Subject: [PATCH] Support Github Actions --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cce19d0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Get dependencies and build + run: | + yarn install + yarn build + - name: Upload + uses: actions/upload-artifact@v1 + with: + name: release + path: dist/