-
Notifications
You must be signed in to change notification settings - Fork 0
/
___render_deploy.sh
84 lines (68 loc) · 2.63 KB
/
___render_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#=========================================== (Render site Locally) ================================================#
# ====== Font Awesome Extension for Quarto
quarto add quarto-ext/fontawesome # https://github.com/quarto-ext/fontawesome#readme
#quarto install extension shafayetShafee/bsicons # https://icons.getbootstrap.com/#icons
quarto install extension schochastics/academicons # https://jpswalsh.github.io/academicons/
#quarto add mcanouil/quarto-iconify
# ====== RENDER the entire site
# quarto preview
quarto preview
# ====== RENDER the entire site
quarto render
# render a single file only
project:
render:
- section1.qmd
- section2.qmd
- "*.qmd"
- "!ignored.qmd"
- "!ignored-dir/"
# ====== PUBLISH
# quarto publish # quasto stronzo mi crea la git branch "gh-pages" --> FIX delete branch
#git branch -d branch_to_delete # { not allowed IF I am on it}
#git branch -D branch_to_delete # { -D if you have changes that are not merged and STILL delete}
#=========================================== (Push to Github repo) ================================================#
cd .
# check status
git status
# Add changes to git Index.
git add -A # ALL
git add -u # tracked
git add cv/*
git add images/*
git add docs/*
git add posts/*
git add writings/
git add README*
git add _extensions/
=======
# Create Std commit "message"....
msg="rebuilt on `date`"
if [ $# -eq 1 ]
then msg="$1"
fi
# ... Commit Those changes.
git commit -m "$msg"
=======
git commit -m "writings/PDF/IdeePavia_2024.pdf ✍🏻 "
git commit -m "added SLOGAN"
# git commit -m "revision INSTALL + cleanup slides 2" -m "01_... + 00_carico_tab-contesto.qmd "
# Push local source (master branch) to remote reference (origin)
#cd .
git push origin master
#=========================================== ALL IN ONE ================================================#
git add -u && git commit -a -m "quick" && git push
#=========================================== FIle pubblico ================================================#
# https://quarto.org/docs/publishing/quarto-pub.html
# from ./
cd .
quarto publish quarto-pub 10_Validazione.qmd # Published at https://lulliter.quarto.pub/validazione-dati-in-regis/
#-->>>>>>> (dare ENTER x farlo partire)
# ====== Run Script that copies things
# PRIMA CHIUDO TUTTO WORD
Rscript R/salvo_output_li.R
#=========================================== (IGNORE a file accidentally committed in the past) ================================================#
# add .env file to .gitignore
echo "accident.txt" >> .gitignore
# tell Git NOT to track this file (it gets removed from the index, but stays local system)
git rm --writings/zzzz_old/