scverse / scverse/stats

Move stats publishing from the dev bucket to prod

Open
#13 0 comments 0 reactions 2 assignees View on GitHub

@grst is already working on this.

Since Sep 8, 2026.

Dominant language
TypeScript
Stars
4
Forks
0
Avg merge
9h 25m
Merged PRs (30d)
3

Description

The deploy workflow publishes to scverse-stats-dev because the AWS_ROLE_ARN secret holds GitHubActions-Stats-Manager-dev, whose IAM policy only covers the dev bucket — syncing to scverse-stats fails on s3:ListBucket (scverse/stats#12).

To move to prod:

  • Confirm the prod role exists: aws iam get-role --role-name GitHubActions-Stats-Manager. If not, apply prod in scverse/aws: tofu init -backend-config=conf/backend-prod.conf -reconfigure && tofu apply -var-file=conf/prod.tfvars
  • Repoint the secret: gh secret set AWS_ROLE_ARN --repo scverse/stats --body "arn:aws:iam::<account>:role/GitHubActions-Stats-Manager"
  • Set STATS_BUCKET: scverse-stats in .github/workflows/deploy.yaml
  • Update the three fetches in scverse/scverse.github.io (layouts/stats/list.html, layouts/people/list.html, layouts/shortcodes/stats.html) to the prod bucket

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.