Skip to content

clarify in rubric that code should not be submitted for peer review #76

clarify in rubric that code should not be submitted for peer review

clarify in rubric that code should not be submitted for peer review #76

Workflow file for this run

name: publish-gh-pages
on:
push:
branch: main
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare _site
run: |
echo generate main html page in _site/
mkdir _site
# cd lectures
#npm install --no-optional
#cd ..
- name: Generate main page
run: |
cp .assets/template.html _site/index.html
cp .assets/style.css _site/
#sed 's/\](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\([^\(]*\)\.html) (\[/\](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\1.html) ([md](https:\/\/github.com\/mlip-cmu\/s2023\/blob\/main\/lectures\/\1.md), [pdf](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\1.pdf), \[/' < schedule.md | sed 's/\](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\([^\(]*\)\.html) *|/\](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\1.html) ([md](https:\/\/github.com\/mlip-cmu\/s2023\/blob\/main\/lectures\/\1.md), [pdf](https:\/\/mlip-cmu.github.io\/s2023\/slides\/\1.pdf)) |/' > schedule_.md
#sed -i -e '/^\[Schedule\]/r schedule_.md' README.md
npx [email protected] --gfm -i README.md >> _site/index.html
cat .assets/template_end.html >> _site/index.html
#cp *.svg _site/
#cp *.png _site/
mkdir _site/assignments
#cp assignments/*.html _site/assignments/
#rm schedule_.md
cp learninggoals.html _site/
- name: Push to gh-pages
run: |
git clone --quiet --branch gh-pages --depth 1 https://github.com/${{ github.repository }}.git .gh-pages
rm -rf .gh-pages/*
mv _site/* .gh-pages
cd .gh-pages
git add .
touch .nojekyll
git add .nojekyll
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "Update gh-pages for ${{ github.sha }}"
git push https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:gh-pages --force --follow-tags -v