-
Notifications
You must be signed in to change notification settings - Fork 13
75 lines (68 loc) · 2.33 KB
/
build.yml
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
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
}
}
}
}
}
}
}
' > data/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)
if: github.ref == 'refs/heads/main'
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}