Skip to content

Commit 3b8f550

Browse files
fradavgithub-actions[bot]jchiquetpneuvialjolars
authored
Clean up repository: remove migrated source code and streamline CI (computorg#74)
* - Refactoring of repositories parsing metadata to use `quarto inspect` logic instead of manual metadata extraction/parsing. - Removed a small redundant subsection tittle in the authors guide. - RSS feed generated by the main publication script (as quarto is not capable of generating RSS feeds directly from an existing yml). * Update build workflow to stage both YAML and XML published files * Update publications from getcomputo-pub.fsx [skip ci] * 2026 may update * forgot dotnet tool * Fix workflow indentation and build command Steps are now properly nested under the jobs definition. Remove the UpdatePublications target argument from the refresh step. Track .config/dotnet-tools.json by updating gitignore. * Revert * Refresh publication metadata [skip ci] * Update dependency chain in Build.fs Remove UpdatePublications target from default chain * Update lab affiliation for Fradav * Borked link to pci * Fix article pages missing from sitemap causing indexing issues Google Search Console diagnostics showed that published article pages (hosted from separate computorg/published-* repos, served as subpaths of computo-journal.org) were mostly stuck in "Crawled - currently not indexed", while the site's sitemap.xml only listed the 17 core pages and never referenced any of the 21 published articles. - Normalize article URLs to https in PublicationUpdater.fs and in the already-committed site/published.yml (13 entries were http://, producing duplicate-content signals since those repos didn't enforce HTTPS) - Generate a sitemap fragment (site/published-sitemap-fragment.xml) listing all published article URLs whenever publications are refreshed - Merge that fragment into _site/sitemap.xml after quarto render in Build.fs, so the deployed sitemap now includes article pages alongside the core site pages Also enabled "Enforce HTTPS" on the 14 computorg/published-* repos where it was disabled, via the GitHub API (separate from this repo, not part of this commit). * Remove old publication updater and update CI checkout Remove all F# source files, tests, and Paket dependency management for the publication updater. Update the CI workflow to use actions/checkout@v4 and clarify the checkout step name. * fix: configure NuGet source with credentials before installing dotnet tool * fix: remove duplicate NuGet source addition, use already-configured source * fix: use API_GITHUB_TOKEN for NuGet source authentication * fix: use API_GITHUB_TOKEN for NuGet source auth in install step * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Add TODO.md and workflow dispatch force option for build.yml * Reviewer names (computorg#73) * update paragraph on reviewers' anonymity computorg#70 * add reviewer names * Guidelines authors (computorg#71) * updates for computorg#69: remove earlier links to templates and rename to main.qmd * Address most of computorg#69 * rm section "Accessing source code" (the recommended way to access the source code is documented in the FAQ) * update section on python dependency management * fix formatting of reviewer names * more work on alphabetic order * feat: add Open Graph and social metadata (computorg#72) Enable `open-graph` and `twitter-card` in Quarto and add a branded 1200x630 social card so links render with an image on social media. Replace the homepage's HTML `description` (metadata-only on this page) with a plain sentence so the meta description no longer repeats the title. Also improve indexing: set `canonical-url`, drop the trailing slash from `site-url` for clean absolute URLs, and add a post-render hook to align sitemap entries with the canonical trailing-slash form. Fixes computorg#65 * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Refresh publication metadata [skip ci] * Cleaning * Removed unused xml * Removed TODO.md --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Julien Chiquet <julien.chiquet@inrae.fr> Co-authored-by: Pierre Neuvial <pneuvial@users.noreply.github.com> Co-authored-by: Pierre Neuvial <pierre.neuvial@math.cnrs.fr> Co-authored-by: Johan Larsson <13087841+jolars@users.noreply.github.com>
1 parent 24f1e16 commit 3b8f550

51 files changed

Lines changed: 68 additions & 7301 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,60 +16,63 @@ on:
1616

1717
jobs:
1818
build:
19-
# Skip this job on push events when the head commit message contains [skip ci]
2019
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
2120
permissions:
2221
contents: write
2322
runs-on: ubuntu-latest
2423
steps:
25-
- name: Checkout code
26-
uses: actions/checkout@v3
24+
- name: Checkout computorg.github.io site
25+
uses: actions/checkout@v4
2726
with:
2827
fetch-depth: 0
2928
persist-credentials: true
29+
3030
- name: Setup Quarto
3131
uses: quarto-dev/quarto-actions/setup@v2
3232

3333
- name: Setup .NET
34+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force == 'true' }}
3435
uses: actions/setup-dotnet@v4
3536
with:
3637
dotnet-version: "10.0.x"
3738

38-
- name: Restore build tooling
39+
- name: Install Computo CLI tools
40+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force == 'true' }}
41+
env:
42+
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
3943
run: |
40-
dotnet tool restore
41-
dotnet tool run paket restore
42-
43-
- name: Run tests
44-
run: dotnet run --project src/Build.fsproj -- -t Test
44+
dotnet nuget add source "https://nuget.pkg.github.com/computorg/index.json" \
45+
--name "GitHubPackages" \
46+
--username "fradav" \
47+
--password "$API_GITHUB_TOKEN" \
48+
--store-password-in-clear-text
49+
dotnet tool install --global Computo.PublicationUpdater.Cli
50+
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
4551
4652
- name: refresh publications and commit changes
4753
if: ${{ github.event_name == 'workflow_dispatch' || github.event.inputs.force == 'true' }}
4854
env:
4955
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
5056
run: |
51-
dotnet run --project src/Build.fsproj -- -t UpdatePublications
57+
computo-publish .
5258
git config user.name "github-actions[bot]"
5359
git config user.email "github-actions[bot]@users.noreply.github.com"
54-
# Stage the generated files (ignore errors if files missing)
5560
git add site/published.{yml,xml} site/pipeline.yml site/mock-papers.yml || true
56-
# Only commit if there are staged changes
5761
if git diff --staged --quiet; then
5862
echo "No publication changes to commit"
5963
else
6064
git commit -m "Refresh publication metadata [skip ci]"
61-
# push to the branch that triggered the workflow
6265
git push origin HEAD:${{ github.ref_name }}
6366
fi
6467
6568
- name: Build site
66-
run: dotnet run --project src/Build.fsproj -- -t RenderSite
69+
run: quarto render
6770
- name: Upload artifact
6871
uses: actions/upload-pages-artifact@v3
72+
with:
73+
path: ./_site
6974

70-
# Deployment job
7175
deploy:
72-
# skip this job if the event is a pull request or if the branch is not master
7376
if: github.event_name != 'pull_request'
7477
permissions:
7578
pages: write

0 commit comments

Comments
 (0)