name: Build on: push: branches: - '*' jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install NPM dependencies run: npm ci - name: Build run: npm run build - name: Test run: npm test - name: Lint run: npm run lint - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build destination_dir: ${{ github.ref_name }} allow_empty_commit: true