From e9c01ea20e04199beb89bbdf6d8cb00e3d3d75b6 Mon Sep 17 00:00:00 2001 From: Ernest Guevarra Date: Sat, 30 Nov 2024 18:20:26 +0000 Subject: [PATCH 1/5] Add 1 git-crypt collaborator New collaborators: C27BA5D5 Ernest Guevarra --- .git-crypt/.gitattributes | 4 ++++ .../8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg | Bin 0 -> 727 bytes 2 files changed, 4 insertions(+) create mode 100644 .git-crypt/.gitattributes create mode 100644 .git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg diff --git a/.git-crypt/.gitattributes b/.git-crypt/.gitattributes new file mode 100644 index 0000000..665b10e --- /dev/null +++ b/.git-crypt/.gitattributes @@ -0,0 +1,4 @@ +# Do not edit this file. To specify the files to encrypt, create your own +# .gitattributes file in the directory where your files are. +* !filter !diff +*.gpg binary diff --git a/.git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg b/.git-crypt/keys/default/0/8AA5460E0D207F85D57B86990F0FEC7CC27BA5D5.gpg new file mode 100644 index 0000000000000000000000000000000000000000..0f437123c621b8e334ce2a440224cf3de20dd97f GIT binary patch literal 727 zcmV;|0x1230t^EWlcp5#;D>Yp5B(Qihefi2-4SA-AQ97VONq)8t9T>pgCZox|BR|e zSsQG^czmHm4jgFYTeD?Fju+~07=^OM~JD^0{yD>?d?lZtiqKJ{0 z0le|@ta9WOETQCEyoan){B$m75=Wz@_x8!y`uSTEQiGZWIeMV)qp$YGY55k^9D`K` z+dYJ+bIrDuizdxdW~DW$mF4Q-#`{-W&Qr)^r9H<`0@?ERgq}6Cnqu$?;AckApoYh$ zD@0EE*b?iy!ExRS!!ZoDYNe-XQtWDD6UYbqjkvZ4QOgj9VKEioo(*tSnu!y}Z483) zzmMx;EJ|cV3f*Qa8F$RC&SFF}0{q!AtZ`dlyaU;|a*de-id=hY%qTs++kag_^)!!G zvPX`ioM$^S+8FO`Da9SQG>~$0sj|8>^86!m!rf7ip53&iU{1(_bb?{>n%m#->N%}g z$HwSKV`7|WINcT(LbF$Jt6PUDd3O_gFP@SR-mIU_%^5O1a5wuB4<6$*==8HOsSvW! ze3w%mvwGk)b;W zq+87H9}xK-znL-9m9Emj1px+EqvWlB^j{N*%_rPyQu%Uv1aFR$655D$T>oYb`Gp9P z@@HU#K`yI>`TVk8gr!NZ-v+MY;fczR`7Y)P@cwrH1Y%S{DYvb&6FW?w6JQC)0KlOT zqh3QJi)T1QFd?Trv6g)=Z^N~TD>}-K2uyKs7_VL#fj&45t(_Uhy7FhcX^f1I&(nYR z_1qh0%7!M;qoyyNob6Q%;4sfYl2bN##U*VZ!cQWpff+Ciaa=3k=0>wnPa^k{3qb6p JvP0j6>y)RAZrlI> literal 0 HcmV?d00001 From 7e44496336ce4369c849a86499a9ad11f96ace1c Mon Sep 17 00:00:00 2001 From: Ernest Guevarra Date: Sat, 30 Nov 2024 18:22:00 +0000 Subject: [PATCH 2/5] encrypt repository; fix setup git-crypt encryption #18 --- .env | Bin 0 -> 22 bytes .gitattributes | 2 ++ .gitignore | 1 + preamble.tex | 67 ------------------------------------------------- style.css | 14 ----------- 5 files changed, 3 insertions(+), 81 deletions(-) create mode 100644 .env create mode 100644 .gitattributes delete mode 100644 preamble.tex delete mode 100644 style.css diff --git a/.env b/.env new file mode 100644 index 0000000000000000000000000000000000000000..6c92967ca9c55aafe6c96f09c046e3438bdd43a2 GIT binary patch literal 22 dcmZQ@_Y83kiVO&0;GB7UT8VJX3CY54QvggG2WtQT literal 0 HcmV?d00001 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..889dc35 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.env filter=git-crypt diff=git-crypt +auth/**/* filter=git-crypt diff=git-crypt diff --git a/.gitignore b/.gitignore index b5e9167..6923873 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /.quarto/ +/docs/ diff --git a/preamble.tex b/preamble.tex deleted file mode 100644 index f788e6c..0000000 --- a/preamble.tex +++ /dev/null @@ -1,67 +0,0 @@ -\usepackage{booktabs} -\usepackage{color} -\usepackage{tcolorbox} -\usepackage{float} -\graphicspath{ {images/} } - -\newenvironment{rmdremind} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Remember}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{remind.png} - \begin{itemize}} - {\end{itemize} - \end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdnote} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Note}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{pencil.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdexercise} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Exercise}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{exercise.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdinfo} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Info}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{info.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmdwarning} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Warning}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{warning.png}} - {\end{includegraphics} - \end{tcolorbox}} - -\newenvironment{rmddownload} - {\begin{tcolorbox}[width=\textwidth, - colback = {white}, - title = {\textbf{Download}}, - colbacktitle = lightgray, - coltitle = black] - \begin{includegraphics}[scale = 1]{download.png}} - {\end{includegraphics} - \end{tcolorbox}} \ No newline at end of file diff --git a/style.css b/style.css deleted file mode 100644 index f317b43..0000000 --- a/style.css +++ /dev/null @@ -1,14 +0,0 @@ -p.caption { - color: #777; - margin-top: 10px; -} -p code { - white-space: inherit; -} -pre { - word-break: normal; - word-wrap: normal; -} -pre code { - white-space: inherit; -} From 989cc43c5cf3c66520e002daad6781b61e17c30c Mon Sep 17 00:00:00 2001 From: Ernest Guevarra Date: Sat, 30 Nov 2024 18:30:03 +0000 Subject: [PATCH 3/5] add airtable keys --- .env | Bin 22 -> 154 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.env b/.env index 6c92967ca9c55aafe6c96f09c046e3438bdd43a2..8539528c5c605b3e7efa10ac8a96302a2e5ae5d1 100644 GIT binary patch literal 154 zcmV;L0A>FGM@dveQdv+`04sprq(cIK!%c*vhPN;+Mr`iL&e@;Yc~&g}sAXnT{XmaC zc=nm8>r}<^uY%T({jf53m<8`y)7@0GaS{bx(g>6}W$Vmu+`F`&kJo3)SnhJ4I836l z-M?w8`I!N76-iB0Bv|TA4fk~%W2 Date: Sat, 30 Nov 2024 18:38:00 +0000 Subject: [PATCH 4/5] Initialising gh-pages branch From 8d6f48120a4d586880c59a7daf9c6b1788837d74 Mon Sep 17 00:00:00 2001 From: Ernest Guevarra Date: Sat, 30 Nov 2024 18:44:27 +0000 Subject: [PATCH 5/5] setup gha publish workflow --- .github/workflows/publish.yml | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5176199 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,54 @@ +on: + workflow_dispatch: + push: + branches: main + +name: Quarto Publish + +jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + env: + GIT_CRYPT_KEY64: ${{ secrets.GIT_CRYPT_KEY64 }} + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + apt-get update && apt-get install -y --no-install-recommends \ + git-crypt + + - name: Trust git repo + run: | + git config --global --add safe.directory /__w/acdc-db-handbook/acdc-db-handbook + + - name: Decrypt repository using symmetric key + run: | + echo $GIT_CRYPT_KEY64 > git_crypt_key.key64 && base64 -di git_crypt_key.key64 > git_crypt_key.key && git-crypt unlock git_crypt_key.key + rm git_crypt_key.key git_crypt_key.key64 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Install tinytex + run: quarto install tinytex + + - name: Install R + uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.4.1' + + - name: Install R Dependencies + uses: r-lib/actions/setup-renv@v2 + with: + cache-version: 1 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file