Last active
September 12, 2019 06:02
-
-
Save leny/6a71dd0b8ffef5c2f691e16e07102797 to your computer and use it in GitHub Desktop.
Kareble post @ dev.to
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
query fetch($cursor:String) { | |
organization(login: "becodeorg") { | |
membersWithRole(first: 25, after: $cursor) { | |
totalCount | |
pageInfo { | |
hasNextPage | |
endCursor | |
} | |
nodes { | |
login | |
contributionsCollection { | |
hasAnyContributions | |
contributionCalendar { | |
weeks { | |
contributionDays { | |
weekday | |
contributionCount | |
date | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
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
name: Build & deploy | |
on: | |
schedule: | |
- cron: '0 8 * * SUN' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: npm install, fetch data and build | |
run: | | |
npm ci | |
npm run fetch:data "${{ secrets.PAT_TOKEN }}" | |
npm run build | |
- name: deploy | |
uses: crazy-max/ghaction-github-pages@master | |
with: | |
target_branch: gh-pages | |
build_dir: public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.PAT_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment