Knowledge stats page #1803
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| # every day at 00:00 UTC | |
| - cron: "0 0 * * *" | |
| name: Knowledge stats page | |
| jobs: | |
| build-and-deploy: | |
| name: Build and deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Calculate stats and generate html | |
| uses: cedrickring/golang-action@1.5.1 | |
| with: | |
| args: go run ./_repoUtils/main.go | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
| publish_dir: ./_repoUtils/public |