diff --git a/.github/ISSUE_TEMPLATE/content-submission.yaml b/.github/ISSUE_TEMPLATE/content-submission.yaml deleted file mode 100644 index 15472bcef..000000000 --- a/.github/ISSUE_TEMPLATE/content-submission.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Content Submission -description: Submit your content for our TBD Ambassadors page. -assignees: - - taniashiba -body: - - type: input - id: title - attributes: - label: Content Title - validations: - required: true - - type: input - id: link - attributes: - label: Content Link - validations: - required: true - - type: input - id: thumbnail - attributes: - label: Thumbnail URL (16:9 ratio required) - validations: - required: true - - type: input - id: contributor - attributes: - label: Contributor Name - validations: - required: true - - type: dropdown - id: content_type - attributes: - label: Content Type - options: - - video - - blog - - social - validations: - required: true diff --git a/.github/workflows/update-contributor-content.yml b/.github/workflows/update-contributor-content.yml deleted file mode 100644 index a8a732714..000000000 --- a/.github/workflows/update-contributor-content.yml +++ /dev/null @@ -1,85 +0,0 @@ -name: Update Contributor Content - -on: - issues: - types: [opened, edited] - -jobs: - update-content: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Get Issue Data - id: issue_data - run: | - echo "::set-output name=issue_title::${{ github.event.issue.title }}" - echo "::set-output name=issue_body::${{ github.event.issue.body }}" - echo "::set-output name=issue_url::${{ github.event.issue.html_url }}" - echo "::set-output name=contributor::${{ github.event.issue.user.login }}" - - - name: Check if issue is a content submission - id: check_content_submission - run: | - issue_body="${{ steps.issue_data.outputs.issue_body }}" - if echo "$issue_body" | grep -q "Type:"; then - echo "This is a content submission issue" - echo "::set-output name=continue::true" - else - echo "This is not a content submission issue" - echo "::set-output name=continue::false" - continue-on-error: false - - - name: Stop if not a content submission - if: steps.check_content_submission.outputs.continue != 'true' - run: | - echo "Skipping workflow as this issue is not a content submission." - continue-on-error: false - - - name: Update externalContributors.json - if: steps.check_content_submission.outputs.continue == 'true' - run: | - echo "Updating externalContributors.json with issue data" - issue_body="${{ steps.issue_data.outputs.issue_body }}" - - # Extracting the type and thumbnail link from the body - content_type=$(echo "$issue_body" | grep -oP "(?<=Type: ).*") - thumbnail_url=$(echo "$issue_body" | grep -oP "(?<=Thumbnail: ).*") - - # Construct the new content entry - new_entry=$(jq -n \ - --arg type "$content_type" \ - --arg thumbnail "$thumbnail_url" \ - --arg title "${{ steps.issue_data.outputs.issue_title }}" \ - --arg link "${{ steps.issue_data.outputs.issue_url }}" \ - --arg contributor "${{ steps.issue_data.outputs.contributor }}" \ - '{type: $type, thumbnail: $thumbnail, title: $title, link: $link, contributor: $contributor}') - - # Update the externalContributors.json file - jq ". += [$new_entry]" site/src/externalContributors.json > tmp.json - mv tmp.json site/src/externalContributors.json - - - name: Create a new branch - if: steps.check_content_submission.outputs.continue == 'true' - run: | - git config --global user.name "GitHub Action" - git config --global user.email "action@github.com" - branch_name="update-contributors-$(date +%Y%m%d%H%M%S)" - git checkout -b $branch_name - git add site/src/externalContributors.json - git commit -m "Update external contributors content from issue #${{ github.event.issue.number }}" - git push origin $branch_name - - - name: Create pull request - if: steps.check_content_submission.outputs.continue == 'true' - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: $branch_name - title: "Update external contributors content from issue #${{ github.event.issue.number }}" - body: "This pull request updates the externalContributors.json file with content from issue #${{ github.event.issue.number }}." - labels: ["auto-update"] - draft: false - reviewers: taniashiba diff --git a/site/src/components/ExternalContributors.jsx b/site/src/components/ExternalContributors.jsx index fc4a74b04..7b23842e6 100644 --- a/site/src/components/ExternalContributors.jsx +++ b/site/src/components/ExternalContributors.jsx @@ -30,8 +30,8 @@ export default function ContributorShowcase() {
Compelling content is how we introduce and teach developers about the decentralized web (dweb). Whether it's a short video or in-depth blog post breaking down a complex topic, this space is dedicated to your top content on our open source projects, the dweb, and more.
-Have a contribution you want to share? Submit your contribution - here. +
Have a contribution you want to share? Head over to GitHub and check out + this issue to learn how!
diff --git a/site/static/img/test1.png b/site/static/img/external-contributor/test1.png similarity index 100% rename from site/static/img/test1.png rename to site/static/img/external-contributor/test1.png