diff --git a/.github/workflows/asciidoctor-ghpages.yml b/.github/workflows/asciidoctor-ghpages.yml index ea2d6f3..8b23fcb 100644 --- a/.github/workflows/asciidoctor-ghpages.yml +++ b/.github/workflows/asciidoctor-ghpages.yml @@ -12,7 +12,7 @@ env: jobs: configure: name: Configure Github Pages Publishing - runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-24.04 + runs-on: &runner ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-24.04 outputs: enable_publish: ${{ steps.check.outputs.isfork == 'NO' }} steps: @@ -30,10 +30,10 @@ jobs: build: needs: configure name: Build Documentation - runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-24.04 + runs-on: *runner steps: - name: Checkout source - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Setup Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 @@ -49,29 +49,20 @@ jobs: - name: Restore CPM cache env: cache-name: cpm-cache-0 - id: cpm-cache-restore - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/cpm-cache key: ${{runner.os}}-${{env.cache-name}}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }} restore-keys: | + ${{runner.os}}-${{env.cache-name}}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }} ${{runner.os}}-${{env.cache-name}}- - name: Configure CMake run: cmake -Bbuild -DCPM_SOURCE_CACHE=~/cpm-cache - - name: Save CPM cache - env: - cache-name: cpm-cache-0 - if: steps.cpm-cache-restore.outputs.cache-hit != 'true' - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - with: - path: ~/cpm-cache - key: ${{runner.os}}-${{env.cache-name}}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }} - - name: Build documentation run: | - test $(cmake --build build -v -t docs | grep -c ERROR) == 0 + test "$(cmake --build build -v -t docs | grep -c ERROR)" == 0 touch ./build/docs/.nojekyll ls -la ./build/docs @@ -95,7 +86,7 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-24.04 + runs-on: *runner steps: - name: Deploy to github pages id: deployment