-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.75 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
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 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧 # This compiles the site into the _site folder
run: |
npm ci
npm run build
- 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
socialAccounts(first:10) {
edges {
node {
provider
url
}
}
}
}
}
}
}
' > _site/static/people.json
env:
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_READER }}
- name: Deploy 🚀 # This step commits the contents of the _site folder into the gh-pages branch (which github serves as a website)
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site