Minor clarification #346
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: 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 |