This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Update README.md #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Contributors List | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
contributor_list: | |
name: Contributor List | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- run: mkdir -p build/pages | |
- run: wget https://api.github.com/repos/bauerj/paperless_app/contributors?per_page=100 -O build/pages/contributors.json | |
name: Get Github contributors | |
- name: Get Crowdin contributors | |
run: | | |
wget https://api.crowdin.com/api/v2/projects/405180/members?limit=500 --header="Authorization: Bearer $CROWDIN_API_KEY" -O build/pages/translators.json | |
env: | |
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }} | |
- run: | | |
echo "{\"translators\": $(cat build/pages/translators.json), \"contributors\": $(cat build/pages/contributors.json)}" > build/pages/contributors-combined.json | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: build/pages | |
CLEAN: true |