From 61249526ce5f62434ed449a46a50157c05e238bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:05:54 +0000 Subject: [PATCH] Bump peaceiris/actions-gh-pages from 3 to 4 Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4. - [Release notes](https://github.com/peaceiris/actions-gh-pages/releases) - [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md) - [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4) --- updated-dependencies: - dependency-name: peaceiris/actions-gh-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/asciidoc.yml | 116 ++++++++++++++++----------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/asciidoc.yml b/.github/workflows/asciidoc.yml index e7e3d8af..7140b849 100644 --- a/.github/workflows/asciidoc.yml +++ b/.github/workflows/asciidoc.yml @@ -1,58 +1,58 @@ -name: AsciiDoc Documentation - -on: - workflow_dispatch: - pull_request: - merge_group: - push: - branches: - - 'master' - tags: - - '[0-9]+.[0-9]+.[0-9]+*' - -jobs: - build-doc: - runs-on: ubuntu-latest - name: Build AsciiDoc documentation - steps: - - name: Checkout into ./repo - uses: actions/checkout@v4 - with: - path: repo - - name: Extract revision info - id: rev_info - run: | - cd repo - echo ::set-output name=date::$(git show -s --format=%ci ${{ github.sha }}) - REV_TAG=$(git tag --list '*.*.*' --points-at ${{ github.sha }}) - REV_VERSION=$(if [[ $REV_TAG ]]; then echo "$REV_TAG"; else echo "${{ github.sha }}"; fi) - echo ::set-output name=tag::"$REV_TAG" - echo ::set-output name=version::"$REV_VERSION" - cd .. - - name: Process AsciiDoc from ./repo to ./public - uses: tonynv/asciidoctor-action@v2 - with: - program: asciidoctor -D public -b html5 -o index.html -a toc=left -a revdate="${{ steps.rev_info.outputs.date }}" -a revnumber="${{ steps.rev_info.outputs.version }}" -a source-highlighter=rouge repo/README.adoc - - name: Upload AsciiDoc documentation - uses: actions/upload-artifact@v4 - with: - name: docs-${{ github.sha }} - path: public - retention-days: 3 - publish-doc: - runs-on: ubuntu-latest - name: Deploy to GitHub Pages - if: startsWith(github.event.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' - needs: build-doc - environment: github-pages-branch - steps: - - name: Download documentation artifact into ./public - uses: actions/download-artifact@v4 - with: - name: docs-${{ github.sha }} - path: public - - name: Push content of ./public - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: public +name: AsciiDoc Documentation + +on: + workflow_dispatch: + pull_request: + merge_group: + push: + branches: + - 'master' + tags: + - '[0-9]+.[0-9]+.[0-9]+*' + +jobs: + build-doc: + runs-on: ubuntu-latest + name: Build AsciiDoc documentation + steps: + - name: Checkout into ./repo + uses: actions/checkout@v4 + with: + path: repo + - name: Extract revision info + id: rev_info + run: | + cd repo + echo ::set-output name=date::$(git show -s --format=%ci ${{ github.sha }}) + REV_TAG=$(git tag --list '*.*.*' --points-at ${{ github.sha }}) + REV_VERSION=$(if [[ $REV_TAG ]]; then echo "$REV_TAG"; else echo "${{ github.sha }}"; fi) + echo ::set-output name=tag::"$REV_TAG" + echo ::set-output name=version::"$REV_VERSION" + cd .. + - name: Process AsciiDoc from ./repo to ./public + uses: tonynv/asciidoctor-action@v2 + with: + program: asciidoctor -D public -b html5 -o index.html -a toc=left -a revdate="${{ steps.rev_info.outputs.date }}" -a revnumber="${{ steps.rev_info.outputs.version }}" -a source-highlighter=rouge repo/README.adoc + - name: Upload AsciiDoc documentation + uses: actions/upload-artifact@v4 + with: + name: docs-${{ github.sha }} + path: public + retention-days: 3 + publish-doc: + runs-on: ubuntu-latest + name: Deploy to GitHub Pages + if: startsWith(github.event.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' + needs: build-doc + environment: github-pages-branch + steps: + - name: Download documentation artifact into ./public + uses: actions/download-artifact@v4 + with: + name: docs-${{ github.sha }} + path: public + - name: Push content of ./public + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: public