diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..64e0afd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build distribution +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: npm ci + - name: Build distributions + run: npm run dist + - name: Update built distributions + run: | + git config user.name aframe-physics-system + git config user.email aframe-physics-system@github.com + git add dist + git commit -m "Update built distributions" + git push