-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5e211c
commit 52e1274
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.quarto | ||
_site | ||
/.quarto/ | ||
localData/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ format: | |
resources: | ||
- styles | ||
- images | ||
- localData | ||
toc: true |