From 9d7c044679dc3210d206effa05cec7ffa88ab99d Mon Sep 17 00:00:00 2001 From: Jack Champagne Date: Wed, 29 Oct 2025 01:37:59 -0400 Subject: [PATCH] tagbot + manual tag multidocs rebuild trigger --- .github/workflows/TagBot.yml | 35 +++++++++++++++++++++++++++ .github/workflows/docs.yml | 47 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 .github/workflows/TagBot.yml create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 00000000..00eaaebd --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,35 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: + inputs: + lookback: + default: "3" +permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} + - name: Re-trigger docs build + uses: peter-evans/repository-dispatch@v3 + with: + event-type: tagbot-release-created \ No newline at end of file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..8f2184f2 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,47 @@ +name: Documentation +on: + pull_request: + push: + branches: + - main + tags: ["*"] + repository_dispatch: + types: [tagbot-release-created] + +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +jobs: + docs: + name: Documentation + runs-on: ubuntu-latest + permissions: + contents: write + statuses: write + env: + DOC_TEMPLATE_VERSION: "v0.2.0" # Change this to the specific tag version you want + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + - uses: julia-actions/cache@v2 + - name: Use Documentation Template + run: | + ./docs/get_docs_utils.sh ${{ env.DOC_TEMPLATE_VERSION }} + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-docdeploy@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload documentation artifacts + uses: actions/upload-artifact@v4 + with: + name: documentation-build + path: docs/build/ + retention-days: 1 + - run: | + julia --project=docs -e ' + using Documenter: DocMeta, doctest + using PiccoloMultidocs + DocMeta.setdocmeta!(PiccoloMultidocs, :DocTestSetup, :(using PiccoloMultidocs); recursive=true) + doctest(PiccoloMultidocs)'