day 18 :) #41
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: Generate svg stats | |
on: [push] | |
jobs: | |
stats: | |
name: Generate stats | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install github linguist | |
run: gem install github-linguist | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Generate updated stats svg | |
run: python langs.py | |
- name: Push to branch | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: artifacts | |
FOLDER: assets | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |