You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/pages.yml
+2-24Lines changed: 2 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -28,34 +28,12 @@ jobs:
28
28
sudo apt-get update
29
29
sudo apt-get install -y pandoc jq curl
30
30
31
-
- id: ensure_license
31
+
- id: ensure_license
32
32
name: Ensure MIT License exists (and mark if created)
33
33
run: |
34
34
if [ ! -f LICENSE ]; then
35
35
YEAR=$(date +%Y)
36
-
cat > LICENSE <<EOF
37
-
MIT License
38
-
39
-
Copyright (c) ${YEAR} Steph Buongiorno
40
-
41
-
Permission is hereby granted, free of charge, to any person obtaining a copy
42
-
of this software and associated documentation files (the "Software"), to deal
43
-
in the Software without restriction, including without limitation the rights
44
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
-
copies of the Software, and to permit persons to whom the Software is
46
-
furnished to do so, subject to the following conditions:
47
-
48
-
The above copyright notice and this permission notice shall be included in all
49
-
copies or substantial portions of the Software.
50
-
51
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
-
SOFTWARE.
58
-
EOF
36
+
printf '%s\n' "MIT License" "" "Copyright (c) $YEAR Steph Buongiorno" "" "Permission is hereby granted, free of charge, to any person obtaining a copy" "of this software and associated documentation files (the \"Software\"), to deal" "in the Software without restriction, including without limitation the rights" "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" "copies of the Software, and to permit persons to whom the Software is" "furnished to do so, subject to the following conditions:" "" "The above copyright notice and this permission notice shall be included in all" "copies or substantial portions of the Software." "" "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" "AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," "OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE" "SOFTWARE." > LICENSE
0 commit comments