Skip to content

Commit

Permalink
Update docs/example to include id-token: write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed May 29, 2024
1 parent cee8070 commit 784eaa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/publish_private_website_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
id-token: write

jobs:
prepare:
runs-on: ubuntu-latest
Expand All @@ -26,3 +29,4 @@ jobs:
artifact: website



2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repo contains code and workflows that enable probcomp repositories to publi

### I manage a probcomp repo. How do I use this?

Create a GitHub action which builds your repo's website, and then follow the example in `.github/workflows/publish_private_website_example.yml`. You'll need to create an artifact containing your website files (at the end of your job where you build the site), and then pass that artifact's name to the action `probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main`.
Create a GitHub action which builds your repo's website, and then follow the example in `.github/workflows/publish_private_website_example.yml`. You'll need to create an artifact containing your website files (at the end of your job where you build the site), and then pass that artifact's name to the action `probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main`. The action requires `id-token: write` permissions.

Your repo will be served from its own subdomain: `<REPO>.gen.dev`.

Expand Down

0 comments on commit 784eaa0

Please sign in to comment.