name: Deploy on: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: persist-credentials: false - name: Set up JDK uses: actions/setup-java@v1 with: java-version: '11' - name: Cache Gradle packages uses: actions/cache@v2 with: path: | ~/.gradle .gradle build/js key: ${{ runner.os }}-gradle - name: Build run: './gradlew :web:browserDistribution' - name: Deploy uses: JamesIves/github-pages-deploy-action@3.6.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages FOLDER: web/build/distributions CLEAN: true