1 name: Main Branch Builds
11 name: Clone Git Repository
12 uses: actions/checkout@v2
15 uses: actions/setup-java@v1
21 name: Cache Maven Repository
22 uses: actions/cache@v1
24 path: ~/.m2/repository
25 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27 ${{ runner.os }}-maven-
30 run: mvn --batch-mode --settings $GITHUB_WORKSPACE/build/settings.xml --activate-profiles benchmarks install -Dorg.slf4j.simpleLogger.log.yosql=warn
32 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 - name: Copy Codegen Benchmark Results
34 run: cp ./yosql-benchmarks/yosql-benchmarks-codegen/target/benchmark/yosql-benchmarks-codegen.json ./yosql-website/content/benchmarks/current/yosql-benchmarks-codegen.json
35 - name: Copy JDBC Benchmark Results
36 run: cp ./yosql-benchmarks/yosql-benchmarks-jdbc/target/benchmark/yosql-benchmarks-jdbc.json ./yosql-website/content/benchmarks/current/yosql-benchmarks-jdbc.json
39 uses: peaceiris/actions-hugo@v2
43 run: hugo --minify --i18n-warnings --path-warnings --source yosql-website
44 - name: Deploy Website
45 uses: peaceiris/actions-gh-pages@v3
47 github_token: ${{ secrets.GITHUB_TOKEN }}
48 publish_dir: ./yosql-website/public
50 cname: yosql.projects.metio.wtf