Skip to content
Snippets Groups Projects
README.md 847 B
Newer Older
Albin Heimerson's avatar
Albin Heimerson committed
# Automatically upload files from gitlab to canvas
Files and instructions to set up automatic upload of files from gitlab to canvas. More information [here](https://wiki.control.lth.se/versionControl/canvasSync).
Albin Heimerson's avatar
Albin Heimerson committed

## Setup
Albin Heimerson's avatar
Albin Heimerson committed
* Copy the `gitlab-ci.yml` file from this repo and place in the root of your repo.
Albin Heimerson's avatar
Albin Heimerson committed
* Modify the environment variable `CANVAS_COURSE_CODE` in your `gitlab-ci.yml` to correspond to the course code canvas uses in its url. This can be found by opening the canvas page for the course and looking at the url, it should be of the form `https://canvas.education.lu.se/courses/ID_NUMBER/`. 
Albin Heimerson's avatar
Albin Heimerson committed
* Rename `gitlab-ci.yml` to `.gitlab-ci.yml`
Albin Heimerson's avatar
Albin Heimerson committed
* Create the folder `to_canvas` in the root of the gitlab repository and put any files/folders that should be synced in there. They will show up in a `from_git` folder in the canvas file explorer.