Skip to content

Merge pull request #2 from probcomp/huebert/GEN-214-slash-handling #11

Merge pull request #2 from probcomp/huebert/GEN-214-slash-handling

Merge pull request #2 from probcomp/huebert/GEN-214-slash-handling #11

name: Example of publishing a private website
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepend timestamp to index.html
run: |
echo "Published at: $(date)<br/>" | cat - ./public/index.html > temp && mv temp ./public/index.html
- name: Create website artifact
uses: actions/upload-artifact@v4
with:
name: website
path: ./public
publish:

Check failure on line 25 in .github/workflows/publish_private_website_example.yml

View workflow run for this annotation

GitHub Actions / Example of publishing a private website

Invalid workflow file

The workflow is not valid. .github/workflows/publish_private_website_example.yml (Line: 25, Col: 3): Error calling workflow 'probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main'. The nested job 'Deploy' is requesting 'contents: read', but is only allowed 'contents: none'.
needs: prepare
uses: probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main
with:
artifact: website