76
76
- name : Checkout Course Repo
77
77
uses : actions/checkout@v3
78
78
with :
79
- path : lunatech-scala-2-to- scala3-course
79
+ path : cmt-template- scala3
80
80
fetch-depth : 0
81
81
82
82
- name : Setup Course Management Tools
@@ -99,23 +99,23 @@ jobs:
99
99
- name : Setup Coursier Cache
100
100
101
101
with :
102
- root : " lunatech-scala-2-to- scala3-course "
102
+ root : " cmt-template- scala3"
103
103
104
104
- name : Studentify Repo
105
105
run : |
106
106
mkdir -p studentified
107
107
export PATH=${PATH}:$GITHUB_WORKSPACE/CMT/bin
108
108
git config --global user.email "[email protected] "
109
109
git config --global user.name "Lunatech Labs"
110
- cmta studentify -f -g -m lunatech-scala-2-to- scala3-course -d studentified
111
- (cd studentified && exec zip -r lunatech-scala-2-to- scala3-course- student.zip lunatech-scala-2-to- scala3-course )
110
+ cmta studentify -f -g -m cmt-template- scala3 -d studentified
111
+ (cd studentified && exec zip -r cmt-template- scala3-student.zip cmt-template- scala3)
112
112
113
113
- name : Linearize Repo
114
114
run : |
115
115
mkdir -p linearized
116
- cmta linearize -f -m lunatech-scala-2-to- scala3-course -d linearized
117
- mv linearized/lunatech-scala-2-to- scala3-course linearized/lunatech-scala-2-to- scala3-course -linearized
118
- (cd linearized && exec zip -r lunatech-scala-2-to- scala3-course- linearized.zip lunatech-scala-2-to- scala3-course -linearized)
116
+ cmta linearize -f -m cmt-template- scala3 -d linearized
117
+ mv linearized/cmt-template- scala3 linearized/cmt-template- scala3-linearized
118
+ (cd linearized && exec zip -r cmt-template- scala3-linearized.zip cmt-template- scala3-linearized)
119
119
120
120
- name : Create Github Release
121
121
id : create_release
@@ -134,16 +134,6 @@ jobs:
134
134
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
135
135
with :
136
136
upload_url : ${{ steps.create_release.outputs.upload_url }} # release created from previous step
137
- asset_path : ./studentified/lunatech-scala-2-to-scala3-course-student.zip
138
- asset_name : lunatech-scala-2-to-scala3-course-student.zip
139
- asset_content_type : application/zip
140
-
141
- - name : Upload Linearized repo to Github release
142
- uses : actions/upload-release-asset@v1
143
- env :
144
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
145
- with :
146
- upload_url : ${{ steps.create_release.outputs.upload_url }} # release created from previous step
147
- asset_path : ./linearized/lunatech-scala-2-to-scala3-course-linearized.zip
148
- asset_name : lunatech-scala-2-to-scala3-course-linearized.zip
137
+ asset_path : ./studentified/cmt-template-scala3-linearized.zip
138
+ asset_name : cmt-template-scala3-linearized.zip
149
139
asset_content_type : application/zip
0 commit comments