1name: Upload javadocs to Github pages 2 3on: 4 push: 5 branches: 6 - master 7 paths: 8 - opengrok-indexer/** 9 - opengrok-web/** 10 - suggester/** 11 - plugins/** 12 - .github/workflows/javadoc.yml 13 - dev/javadoc.sh 14 15jobs: 16 ubuntu: 17 runs-on: ubuntu-latest 18 steps: 19 - name: Checkout master branch 20 uses: actions/checkout@v2 21 - name: Set up JDK 11 22 uses: actions/setup-java@v1 23 with: 24 java-version: 11 25 - name: Cache Maven packages 26 uses: actions/cache@v2 27 with: 28 path: ~/.m2 29 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 30 restore-keys: ${{ runner.os }}-m2 31 - name: Checkout gh-pages branch 32 if: github.repository == 'oracle/opengrok' 33 uses: actions/checkout@v2 34 with: 35 ref: gh-pages 36 path: gh-pages 37 - name: Refresh Javadoc 38 env: 39 OPENGROK_REPO_SLUG: ${{ github.repository }} 40 OPENGROK_PULL_REQUEST: ${{ github.head_ref }} 41 OPENGROK_REF: ${{ github.ref }} 42 OPENGROK_BUILD_DIR: ${{ github.workspace }} 43 run: ./dev/javadoc.sh 44