From 52e1274e6c28134eed60104b10352b64dc3a254e Mon Sep 17 00:00:00 2001 From: Alex Bigelow Date: Fri, 23 Feb 2024 13:55:59 -0700 Subject: [PATCH] Attempting github workflow --- .github/workflows/build.yml | 74 +++++++++++++++++++++++++++++++++++++ .gitignore | 1 + _quarto.yml | 1 + 3 files changed, 76 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..468cb5b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,74 @@ +name: Build and Deploy +on: [push] +permissions: + contents: write +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Update People Info 🙂 # This pulls the latest info about who is on which Github team + run: | + gh api graphql -f query=' + query { + organization(login: "resbazaz") { + teams(first:100) { + nodes { + name + members(first:100) { + nodes { + id + } + } + } + } + membersWithRole(first:100) { + nodes { + id + name + login + bio + company + avatarUrl + socialAccounts(first:10) { + edges { + node { + provider + url + } + } + } + } + } + } + } + ' > localData/people.json + env: + GITHUB_TOKEN: ${{ secrets.ORGANIZATION_READER }} + + - name: Set up Quarto 🔧 # This compiles the site into the _site folder + uses: quarto-dev/quarto-actions/setup@v2 + + # TODO: add software dependencies here and any libraries + + # From https://github.com/actions/setup-python + # - name: Setup Python + # uses: actions/setup-python@v3 + + # From https://github.com/r-lib/actions/tree/v2-branch/setup-r + # - name: Setup R + # uses: r-lib/actions/setup-r@v2 + + # From https://github.com/julia-actions/setup-julia + # - name: Setup Julia + # uses: julia-actions/setup-julia@v1 + + - name: Deploy to GitHub Pages 🚀 # This step commits the contents of the _site folder into the gh-pages branch (which GitHub serves as a website) + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 991361f..af7caa6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .quarto _site /.quarto/ +localData/* \ No newline at end of file diff --git a/_quarto.yml b/_quarto.yml index 85e4d49..5f3ed55 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -19,4 +19,5 @@ format: resources: - styles - images + - localData toc: true