mirror of
https://github.com/rrousselGit/freezed.git
synced 2025-05-17 16:35:55 +08:00
Specify SPONSORKIT_DIR
This commit is contained in:
1
.github/workflows/sponsor.yml
vendored
1
.github/workflows/sponsor.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
||||
env:
|
||||
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
|
||||
SPONSORKIT_GITHUB_LOGIN: rrousselGit
|
||||
SPONSORKIT_DIR: "./sponsorkit"
|
||||
|
||||
- name: Commit
|
||||
uses: EndBug/add-and-commit@v4
|
||||
|
@ -1,28 +1,23 @@
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { defineConfig, presets } from "sponsorkit";
|
||||
import { defineConfig, presets } from 'sponsorkit'
|
||||
|
||||
export default defineConfig({
|
||||
// Providers configs
|
||||
github: {
|
||||
login: "rrousselGit",
|
||||
},
|
||||
|
||||
// Rendering configs
|
||||
width: 800,
|
||||
formats: ["json", "svg", "png"],
|
||||
tiers: [
|
||||
{
|
||||
title: "Backers",
|
||||
// to replace the entire tier rendering
|
||||
// compose: (composer, tierSponsors, config) => {
|
||||
// composer.addRaw(
|
||||
// '<-- custom svg -->',
|
||||
// )
|
||||
// },
|
||||
preset: presets.base,
|
||||
},
|
||||
{
|
||||
title: "Sponsors",
|
||||
monthlyDollars: 24,
|
||||
monthlyDollars: 10,
|
||||
preset: presets.medium,
|
||||
// to insert custom elements after the tier block
|
||||
composeAfter: (composer, tierSponsors, config) => {
|
||||
composer.addSpan(10);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Silver Sponsors",
|
||||
|
Reference in New Issue
Block a user