7 - .github/workflows/website.yml
11 PROJECT_URL: yosql.projects.metio.wtf
15 runs-on: ubuntu-latest
18 name: Clone Git Repository
19 uses: actions/checkout@v4
21 fetch-depth: 0 # required in order to get all tags
24 uses: peaceiris/actions-hugo@v3
29 uses: graalvm/setup-graalvm@v1
32 java-version: ${{ env.JAVA_VERSION }}
33 github-token: ${{ secrets.GITHUB_TOKEN }}
36 name: Get Last Release
37 run: echo "version=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
38 - name: Set release version
39 run: mvn --batch-mode --define newVersion=${{ steps.previous.outputs.version }} --define generateBackupPoms=false versions:set
40 - id: create-documentation
41 name: Create Documentation
42 run: mvn --batch-mode --projects yosql-website --also-make --define skipTests install
45 run: hugo --minify --printI18nWarnings --printPathWarnings --printUnusedTemplates --source yosql-website
47 YOSQL_RELEASE: ${{ steps.previous.outputs.version }}
50 uses: wjdp/htmltest-action@master
52 config: ./yosql-website/htmltest.yml
55 uses: peaceiris/actions-gh-pages@v4
57 github_token: ${{ secrets.GITHUB_TOKEN }}
58 publish_dir: ./yosql-website/public
60 cname: ${{ env.PROJECT_URL }}