Skip to content

Commit

Permalink
Merge pull request #564 from Xpirix/github_sponsors
Browse files Browse the repository at this point in the history
GitHub sponsors
  • Loading branch information
Xpirix authored Feb 24, 2025
2 parents e90879d + ee3bc1e commit 8fd338d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-gh-sponsors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow updates the GitHub Sponsors list in the content/funding/donate/github-sponsors.md file.
name: 💖 Update the GitHub Sponsors page and commit
on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
schedule:
- cron: '0 0,12 * * *' # At midnight & noon UTC
permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: '🛎️ Checkout'
uses: actions/checkout@v3

- name: '💖 Generate Sponsors'
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.PAT }}
file: 'content/funding/donate/github-sponsors.md'
organization: true
active-only: false
template: |
<a class="rich-list third mr-2 mb-2" href="https://github.com/{{{ login }}}" target="_blank">
<div class="listcont external-link">{{{ name }}} - {{{ login }}}</div>
<div class="subtext is-size-7">https://github.com/{{{ login }}}</div>
</a>
- name: '✉️ Commit'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'GitHub Sponsors updated and committed via a GitHub Action.'
repository: ./qgis-website
6 changes: 6 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,12 @@ sectionPagesMenu = 'main'
url = "/funding/donate/donors"
weight = 270

[[menu.main]]
parent = "Donate"
name = "GitHub Sponsors"
url = "/funding/donate/github-sponsors"
weight = 280

# Submenus are done this way: parent -> identifier
[[menu.main]]
parent = "Resources"
Expand Down
21 changes: 21 additions & 0 deletions content/funding/donate/github-sponsors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
type: "page"
title: "GitHub Sponsors"
draft: false
HasBanner: false
sidebar: true
---

{{< content-start >}}

# GitHub Sponsors

Donations can be of any amount through [GitHub Sponsors](https://github.com/sponsors/qgis). Even a small contribution can make a difference and help us reach important project goals!

<a class="rich-list third mr-2 mb-2" href="https://github.com/sponsors/qgis" target="_blank">
<div class="listcont external-link">Want to see your name here?</div>
<div class="subtext is-size-7">Become a sponsor to QGIS on GitHub</div>
</a>
<!-- sponsors --><!-- sponsors -->

{{< content-end >}}

0 comments on commit 8fd338d

Please sign in to comment.