Skip to content

Commit fcf0250

Browse files
committed
Added Sponsors Feature
1 parent c6eabbf commit fcf0250

9 files changed

Lines changed: 340 additions & 6 deletions

File tree

‎.github/FUNDING.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: ArsenTech
4+
patreon: ArsenTech

‎.github/workflows/scheduler.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Generate Sponsors
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
sponsors:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install Dependencies
25+
run: npm install
26+
27+
- name: Generate Sponsors
28+
run: npm run sponsors
29+
env:
30+
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Commit Files
33+
run: |
34+
git config user.name github-actions
35+
git config user.email github-actions@github.com
36+
37+
git add public/sponsors
38+
39+
git diff --cached --quiet && exit 0
40+
41+
git commit -m "chore: update sponsors"
42+
git push

‎.gitignore‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ next-env.d.ts
4444
# Ignore generated RSS feed
4545
public/rss.xml
4646
public/rss.json
47-
public/atom.xml
47+
public/atom.xml
48+
.env
49+
public/sponsors/.cache.json

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[![Contributors][contributors-shield]][contributors-url]
1414
[![Forks][forks-shield]][forks-url]
1515
[![Stargazers][stars-shield]][stars-url]
16+
[![sponsors-badge]][sponsors-link]
1617

1718
[![Issues][issues-shield]][issues-url]
1819
[![Discussions][discussions-shield]][discussions-url]
@@ -33,6 +34,7 @@
3334
</ul>
3435
</li>
3536
<li><a href="#versioning">Versioning</a></li>
37+
<li><a href="#sponsors">Sponsors</a></li>
3638
<li>
3739
<a href="#contributing">Contributing</a>
3840
<ul>
@@ -79,6 +81,10 @@ This is an ArsenTech's Blog Page - your go-to hub for tech tutorials, antivirus
7981
## Versioning
8082
This website follows [Semantic Versioning](https://semver.org/). You can view the full [Changelog][changelog-url] for details on each website version.
8183

84+
## Sponsors
85+
Check out our awesome sponsors! ❤️
86+
[![Sponsors List][sponsors-list]][sponsors-link]
87+
8288
## Contributing
8389
Contributions are Always Welcome! Please read both [Code of Conduct][code-of-conduct-url] and [CONTRIBUTING.md][contributing-url] before contributing.
8490
### Top Contributors
@@ -126,6 +132,9 @@ Distributed under the MIT License. See [LICENSE.md][license-url] for more inform
126132
[discussions-url]: https://github.com/ArsenTech/blog/discussions
127133
[version-shield]: https://img.shields.io/github/package-json/v/ArsenTech/blog?style=for-the-badge
128134
[vercel-stats-shield]: https://vercelbadge.vercel.app/api/ArsenTech/blog?style=for-the-badge
135+
[sponsors-list]: https://raw.githubusercontent.com/ArsenTech/clamav-gui/main/public/sponsors/sponsors.svg
136+
[sponsors-link]: https://github.com/sponsors/ArsenTech
137+
[sponsors-badge]: https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86&style=for-the-badge
129138

130139
<!-- Languages -->
131140
[nextjs-shield]: https://img.shields.io/badge/next%20js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white

0 commit comments

Comments
 (0)