Ver Fonte

Merge pull request #12 from hiCasper/patch

Support Github Actions
CareyWong há 5 anos atrás
pai
commit
e9b13cdb1e
1 ficheiros alterados com 33 adições e 0 exclusões
  1. 33 0
      .github/workflows/build.yml

+ 33 - 0
.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/