name: test on: push: branches: - 'dev' jobs: github-pages: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v1 - name: Build run: | npm install npm run build - name: Gen dummy page run: | mkdir public cat > public/index.html < GitHub Pages deployed!

GitHub Pages with ${{ github.sha }} commit ID has been deployed through GitHub Pages action successfully.

EOL - name: Deploy if: success() uses: ./ with: target_branch: gh-pages build_dir: public env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}