diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..363c25d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy +on: [workflow_dispatch, push] + +jobs: + build: + runs-on: ubuntu-latest + name: build + steps: + # check out the repository + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - name: Install Dependencies + run: npm ci + + - name: Build + run: CI=false npm run build + + - name: Test + run: npm test + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}