Skip to content

Instantly share code, notes, and snippets.

@leny
Last active September 12, 2019 06:02
Show Gist options
  • Save leny/6a71dd0b8ffef5c2f691e16e07102797 to your computer and use it in GitHub Desktop.
Save leny/6a71dd0b8ffef5c2f691e16e07102797 to your computer and use it in GitHub Desktop.
Kareble post @ dev.to
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
}
}
}
}
}
}
}
}
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