Skip to content

update-badges

update-badges #848

Workflow file for this run

name: update-badges
permissions:
contents: write
on:
push:
branches:
- main
schedule:
- cron: "0 17 * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Install ganda
run: |
GANDA_URL="https://github.com/tednaleid/ganda/releases/download/v0.1.10/ganda_0.1.10_Linux_x86_64.tar.gz" \
&& wget $GANDA_URL \
&& tar -zxvf ganda_0.1.10_Linux_x86_64.tar.gz \
&& mv ganda /usr/local/bin
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- run: bundle install
- name: Gather CRAN data
run: sh scrape_pkgs.sh
- name: Scrape html
run: rake scrape
- name: Make svgs
run: rake makesvgs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: svgs/badges