Skip to content

Commit

Permalink
Merge pull request #20 from ecohealthalliance/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ernestguevarra authored Nov 30, 2024
2 parents 12eb698 + 8d6f481 commit 142495b
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 81 deletions.
Binary file added .env
Binary file not shown.
4 changes: 4 additions & 0 deletions .git-crypt/.gitattributes
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env filter=git-crypt diff=git-crypt
auth/**/* filter=git-crypt diff=git-crypt
54 changes: 54 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@

/.quarto/

/docs/
67 changes: 0 additions & 67 deletions preamble.tex

This file was deleted.

14 changes: 0 additions & 14 deletions style.css

This file was deleted.

0 comments on commit 142495b

Please sign in to comment.