-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 981 Bytes
/
badges.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/github-pages-deploy-action@4.2.0
with:
branch: gh-pages
folder: svgs/badges