build(deps): bump github/codeql-action from 4 to 4.37.4 (#718) #1045
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Github Pages Report | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5.6.0 | |
| with: | |
| java-version: 21 | |
| distribution: 'zulu' | |
| - name: Cache Maven packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build with Maven | |
| run: | | |
| mvn install:install-file -DgroupId="com.harukizaemon.simian" -DartifactId="simian" -Dversion="2.5.10" -Dpackaging=”jar” -Dfile="lib/simian-2.5.10.jar" | |
| mvn clean package site | |
| - name: Push to github pages | |
| run: | | |
| cd ./target/site | |
| git config --global user.name "jiangxincode" | |
| git config --global user.email "jiangxinnju@163.com" | |
| git init | |
| git add . | |
| git commit -m "update gh-pages" | |
| # Sometimes if this github actions is triggered multiple times in a short period, the push may fail due to conflicts | |
| # So we just ignore the error here and try to push again next time | |
| git push -f https://jiangxincode:${{secrets.GITHUB_TOKEN}}@github.com/jiangxincode/ApkToolBoxGUI.git master:gh-pages || echo "Git push failed: $?" |