Skip to content

Move Git SSH setup to pre-course-setup #313

Move Git SSH setup to pre-course-setup

Move Git SSH setup to pre-course-setup #313

Workflow file for this run

name: canvas-upload
on:
workflow_dispatch:
branches:
- main
- devel
push:
paths:
- 'pages/*.md'
- 'pages/*/*.md'
- 'pages/upload-page-to-canvas.sh'
branches:
- main
- devel
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Upload pages
env:
API_TOKEN: ${{ secrets.CANVAS_API_TOKEN }}
run: |
docker pull pandoc/latex
for FILE in $(find pages -name '*.md' ! -name "README.md");
do
bash pages/upload-page-to-canvas.sh "$FILE" "$API_TOKEN"
done