diff --git a/.github/workflows/scc.yml b/.github/workflows/scc.yml new file mode 100644 index 0000000..6a8aed6 --- /dev/null +++ b/.github/workflows/scc.yml @@ -0,0 +1,29 @@ +name: Succinct Code Counter + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + +jobs: + scc_job: + runs-on: ubuntu-latest + name: A job to count the lines of code. + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Get the lines of code. + id: scc + uses: iryanbell/scc-docker-action@v1.0.2 + with: + args: ${{ env.workspace }} -i html,rust,python,c,sml,asm,ruby + - name: Save Results + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./statistics