on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout/@v2 - uses: actions/setup-java@v1 with: java-version: 8 - run: ./gradlew clean :example:build - name: Github Pages uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./example/build/distributions