Tweak actions example #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish on push to main | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepend timestamp to index.html | ||
run: | | ||
echo "Published at: $(date)<br/>" | cat - ./public/index.html > temp && mv temp ./public/index.html | ||
publish: | ||
needs: prepare | ||
uses: probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main | ||
Check failure on line 19 in .github/workflows/publish_private_website_example.yml GitHub Actions / Publish on push to mainInvalid workflow file
|
||
with: | ||
website_dir: './public' | ||